Jump to content
yemoonyah

Hide Blog Post Titles Only On Single Post Pages

Recommended Posts

yemoonyah

Hi,

I'm trying to hide my blog post titles on my single post pages but not on the blog page (where all posts are listed).

Here is the code I use for that:

.single-post .entry-header .page-title {
    font-size: 0;
}

But even though I specify that it should only happen on single post pages, it still shows on the general blog page.

See here: http://yemoonyah.com/blog

How can I fix that?

Thanks,

Yamile

 

Share this post


Link to post
Share on other sites
batman

Hi Yamile
Please, you can try with

.single-post .entry-header .page-title {
    display: none;
}

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
yemoonyah

Hi @batman,

thanks for the help but your code has the same effect. It still hides the title on the single post page and the general blog page where all posts are listed.

I need to just hide it on the single post page but NOT the general blog page.

Thanks,

Yamile

Share this post


Link to post
Share on other sites
Aires

Hi @yemoonyah,

give this a try

.single .single-post .entry-header .page-title {
    display: none;
}

 

  • Like 1

ndTgvai.jpg

Visit iheartpagelines.com for the latest tutorials on PageLines related products.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • StuLeeUK
      By StuLeeUK+
      I have noticed in Google Search Console that I have a lot of errors in the structured data, all down to the error 'Missing: entry-title'.
      All the other fields seem fine but this one error flags up on all blog posts.
      Can anyone point me in the right direction please because I have no idea about this stuff and don't know where to start to try and fix it. Is it anything to even worry about?
    • Claude203
      By Claude203
      This is probably a simple problem to fix, but right now I am new to DMS concepts and therefore I'm stuck and can't seem to figure it out.
       
      On my pages, the page titles are no longer showing up at the top of the page, as they did before. No problem for posts, where the post titles populate just fine. But when I try to make a change to pages, the templates for the entire site change as well, also altering post layouts. So for example, on one particular page I want to make it a full width (no sidebar) layout, but when I make the change on that page, all other pages and all blog posts now suddenly have no sidebar as well. Every time I try to start over by creating a new page from scratch, any change I make there also changes every other page/post. I know this has something to do with templates and how they are linked to posts/pages, but I cannot figure out how to unlink them or what else it could be. 
       
      Thank you.
    • Mike.Wells.US
      By Mike.Wells.US
      Hey All
       
      I am having trouble trying to get my Page Titles above my Boxes on my website.  A good example is this page:
       
      http://www.avsuperfly.com/video-equipment-rentals-san-francisco/
       
      ....where for some reason it says RENTALS, at the very bottom after you've looked at all the Rentals.  Same deal in Sony Cameras, Canon Cameras etc.
       
      Is there a quick piece of code or some little box I can check to get Page titles appearing at the top of the page, above all the box content?
       
      Any help would be fantastic.  I'm on a slightly older version of page lines and currently too afraid to update.
       
      Regards,
       
      Michael
       
       
    • balfred1345
      By balfred1345
      Hi,
      I've got links in header tags in the footer in a columnizer section (therefore I'm using text widgets to supply the content) that aren't showing up in the proper color that I've set in Global options. The a:link is staying white, when it should be blue. The a:hover shows up correctly.
      I've tested this out in tags h4 through h6 and none get the proper CSS from Global options. 
       
      I tried adding the following in custom code, but it did not work:
      /* unvisited link for h6 */ #site h6 > a:link {   color:#006BED !important; }       I've tried using both <p> and <strong> tags and the a:link color does show correctly. The only problem is, that the text itself does not show up well enough against the background... which is why I want to use a header tag.    You can take a look at this in the footer under NEWS at:
      http://whub34.webhostinghub.com/~videoh6/cidev2.com/
       
      Any help would be greatly appreciated!
       
      Thanks,
      Bruce
    • alisamski
      By alisamski+
      I would like to add a category title on my pages at top... not the usual post info metabar...
       
      Frameworks I've added this to the function file... which would create an H1 Title for the category page.
      //ADD CATEGORY TITLE AT TOP OF CAT PAGES add_action('pagelines_inside_top_postloop','cat_title'); function cat_title(){ if ( is_category() ) { ?> <h1 class="cat-title"><?php single_cat_title(); ?></h1> <?php } } What would be the proper action? or is there a simpler way?
       
      Please advise.
×