13-09-2015, 07:16 PM
¿No me funciona esto, y la verdad, no veo el problema, podrían ayudarme?
<?php
if (is_home()) {
<li id="greeting" style="display: list-item;">
<!--<div class="js-cancelResetBtn" id="js-greetingClose"></div>-->
<div class="greetingText">
<div class="greetingTitle"><?php bloginfo('name') ?></div>
<?php bloginfo('description') ?>
</li>
}elseif (is_category()) {
<li id="greeting" style="display: list-item;">
<div class="greetingText">
<div class="greetingTitle"><?php echo category_title( $category_id ); ?></div>
<?php echo category_description( $category_id ); ?>
</li>
}elseif (is_tag()) {
<li id="greeting" style="display: list-item;">
<div class="greetingText">
<div class="greetingTitle"><?php tag_title( $tag_id ); ?></div>
<?php tag_description( $tag_id ); ?>
</li>
}
?>
<?php
if (is_home()) {
<li id="greeting" style="display: list-item;">
<!--<div class="js-cancelResetBtn" id="js-greetingClose"></div>-->
<div class="greetingText">
<div class="greetingTitle"><?php bloginfo('name') ?></div>
<?php bloginfo('description') ?>
</li>
}elseif (is_category()) {
<li id="greeting" style="display: list-item;">
<div class="greetingText">
<div class="greetingTitle"><?php echo category_title( $category_id ); ?></div>
<?php echo category_description( $category_id ); ?>
</li>
}elseif (is_tag()) {
<li id="greeting" style="display: list-item;">
<div class="greetingText">
<div class="greetingTitle"><?php tag_title( $tag_id ); ?></div>
<?php tag_description( $tag_id ); ?>
</li>
}
?>