• BuenoJoe

    (@buenojoe)


    Is there a way to hide tags from being visible to visitors with the Twenty Ten theme? I’ve seen tons of questions asked on this topic and most of them state to edit the the_tags line in index.php, however, my site does not have that line in any of the theme files in this theme.

    If it isn’t possible to hide them, is it possible to only make them show up under the actual post and not under the excerpt on the main page? We use the <more> tag to make our homepage cleaner and the tags show up under every post on the main page.

    Does anyone have any suggestions?

    Link to site https://www.buenojoe.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Michael

    (@alchymyth)

    look in loop.php of the theme:

    <?php
    					$tags_list = get_the_tag_list( '', ', ' );
    					if ( $tags_list ):
    				?>
    					<span class="tag-links">
    						<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    					</span>
    					<span class="meta-sep">|</span>
    				<?php endif; ?>

    (beginning about 30 lines from the end)

    Thread Starter BuenoJoe

    (@buenojoe)

    OK, the loop.php does have that section in it. How do I modify that code to hide the tags? Do I just delete that section?

    Thank you for replying.

    Michael

    (@alchymyth)

    Do I just delete that section?

    yes

    make a backup copy of the theme files before editing

    Thread Starter BuenoJoe

    (@buenojoe)

    That worked. Thank you for the help!

    Will the tags still work for searching after that?

    Removing tags from excerpts worked for me. On child theme thirty ten i had to edit both loop.php and loop-author.php. Thanks for the tip Alchymyth.

    I also changed the ….finish reading ‘post-title’ link so that instead, it shows …read more. Curiously, some of the excerpts are showing neither the new link format, not the thirty ten format. Instead they show the twenty ten format …Continue reading->

    I’m not sure why this is happening, and how to resolve it. Below is a link showing this problem

    https://www.jambonairobi.co.ke/category/activities/hiking/hiking-places/

    Any suggestions or ideas appreciated.

    B. Munyao

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to hide tags in Twenty Ten 1.1 theme’ is closed to new replies.