Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24078
    NateSirrah
    Member

    Hey there!

    I’ve been using this wonderful theme to create an informational blog on my localhost (not live yet). Because Catch Box posts the page title like a header on every page (but not within h1 tags, so it’s not SEO friendly), I’ve been using the following to disable titles:

    .page header.entry-header { 
    	display: none; 
    }

    However, the theme also calls the same page title into search results — meaning that my page titles are disabled in search! I’m wondering what function alteration I can make so that page titles remain disabled on pages but so that they show in search results.

    Thanks so much,
    Best,

    Nate

    #24108
    Sakin
    Keymaster

    @NateSirrah: To remove the page tile from the page, you can build child theme and then copy content-page.php file in your child theme and delete the title code

    <header class="entry-header">
    	<h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->

    If you don’t want to build child theme and delete the code then you can hide it by adding the following CSS in “Appearance => Theme Options => Custom CSS” box.
    .page-template-default .entry-header { display: none; }

    #24153
    NateSirrah
    Member

    @Sakin,

    Thanks for the suggestions! Both of your options, while disabling the header, still also disable the title in Search results. This was my original problem!

    How would I disable titles on pages but keep titles in search results?

    EDIT: Looks like the first result worked, I just had to refresh my cache. Thank you~~

    Thanks,
    Nate

    #24178
    Sakin
    Keymaster

    @NateSirrah: Yes you need to clear the cache if you have installed any. Thanks for posting it back as fixed.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Displaying Titles Only in Search’ is closed to new replies.