A
A
Alexander Pupkin2015-11-15 20:13:53
Drupal
Alexander Pupkin, 2015-11-15 20:13:53

Hmmm, how do you tell if it's a taxonomy terms page?

Mmmmm, I'm sitting stupid ... I
use this code in page.tpl.php

<div class="content-overlay">
  <?php if($is_front): ?>
    <div class="content-wrapper">
  <?php else: ?>
    <div class="content-wrapper-full-node">
  <?php endif; ?>
    <?php print render($page['content']); ?>
  </div> 
</div>

I use content-wrapper as a container for working with Masonry. Therefore, it makes no sense to edit taxonomy-term.tpl ...
Eee, but how to immediately check if the taxonomy page, then set another div , another class?
Something 1 time encountered this \u003d\

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2015-11-15
@sakrab

if (arg(0) == 'taxonomy' && arg(1) == 'term')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question