• Hi all,

    I’m trying to hide a specific code that is essential to my post, but that I don’t want showing up on in the index.php.

    Here’s the specific div element as it shows in the page source (with the text edited):

    <div class="greet_block">
    <div class="greet_text">hi
    <div style="clear:both"></div></div></div>

    In the past I was able to hide image captions using this code in the header:

    <?php if ( is_home() )
    	add_filter('img_caption_shortcode', create_function('$a, $b, $c',
    'return $c;'), 10, 3); ?>

    Unfortunately, that code doesn’t work when I try to replace “img_caption_shortcode” with “greet_block”.

    Any help?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide div element from index.php’ is closed to new replies.