Remove title on 'pages' only

Community Forums Forums Design Tips and Tricks Remove title on 'pages' only

This topic is: not resolved

Tagged: , , ,

This topic contains 12 replies, has 5 voices, and was last updated by  braddalton 1 year, 4 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #23071

    fortyfivecreative
    Participant
    Post count: 10

    Hi,

    I’m looking for a function to remove the page title on the ‘static’ pages only, but leaving it visible on any blog, single and archive pages, etc. It would also need to remain visible on the static page I have set to show the blog posts.

    I’m assuming there is a way to do this without a large array?

    Thanks in advance

    David

    #23074

    braddalton
    Participant
    Post count: 8835

    Link to your site please

    It would be something like this:
    [css]
    .page-template-default .entry-title {
    display:none;
    }
    [/css]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #24088

    foundation press
    Participant
    Post count: 2

    I have the same question as fortyfivecreative.

    Thanks for your response braddalton. Could you be more specific as to where the code snippet you posted should be added? Does it go in the “page-title.php” file? Does it matter where in the file it is added?

    Thanks,

    Curt

    #24089

    foundation press
    Participant
    Post count: 2

    OK,

    Just added the line of code you recommended to my functions.php page and got locked out of my blog dashboard with the message:

     

    Parse error: syntax error, unexpected ‘.’ in /home/curt/public_html/fpressstudio.com/blog/wp-content/themes/minimum/functions.php on line 23

     

    Please tell me I can undo what I did without starting all over with a fresh install…

     

     

    #24112

    asdweb
    Participant
    Post count: 105

    braddalton’s suggestion is a possible CSS remedy NOT to be included in the .php file. You will need to access your site via FTP to remove the code you added to the functions.php.

    Once you get the site up again, try the CSS remedy in style.css. If that doesn’t work, consider this plugin. It may just work for what you need. Genesis Title Toggle

    Do include a link to your site if you need more help.


    Amy Susan Design.com @AmySusanDesign

    #24161

    braddalton
    Participant
    Post count: 8835

    Yes sorry, i should have mentioned the code goes at the end of your child themes style.css file. My Bad!!

    CSS doesn’t work very well in the functions.php file!!!

    The reason i suggest CSS is so the title is still visible in the source code and gets scanned by Google’s little monsters.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25427

    ischbins
    Participant
    Post count: 6

    Hi all,
    I have a similar question.
    I want to remove the title and the date from my first site, the “start”-page ….., but only from this site and not from all static ones.

    I found the following code and put it in the “function.php” of the child
    theme (using child-theme “Expose”), but it doesn’t work:

    //REMOVE PAGE TITLE FROM HOME PAGE
    add_action(‘get_header’, ‘child_remove_page_titles’);
    function child_remove_page_titles() {
       if (is_home()) {
         remove_action(‘genesis_post_title’, ‘genesis_do_post_title’);
       }
    }

    Do you have any ideas how to remove at least the page
    title … and as said I want to remove the date as well?

    Thanks in advance & best regards,
    Frank

    #25428

    braddalton
    Participant
    Post count: 8835

    Hide them using CSS code if your PHP doesn’t work.

    Can you link to your site please.

    You mean from your home page or front page?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25429

    ischbins
    Participant
    Post count: 6

    Hi Brad,

    thanks for your fast response.

    The site isn’t official so far…. however, I will make it visible for the next hour. Please let me know when you could have a look at it.

    http://www.yourbavaria.de

    Thanks so far,

    best regards,

    Frank

    #25435

    braddalton
    Participant
    Post count: 8835

    [css]
    .home .post-info {
    display: none;
    }

    .home #content h1 {
    display: none;
    }
    [/css]
    Paste this CSS code at the end of your child themes style.css file.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25437

    ischbins
    Participant
    Post count: 6

    Brad,

    thank you so much. That’s it.

    Another question: Just in case I don’t want to display the title on other pages as well. How looks the css-code for generally hiding “title, Author, date”?

    Again, thanks a lot.

    Best rgds,

    Frank

     

    #25440

    ischbins
    Participant
    Post count: 6

    … sorry, just to mention, that I have tried to code on top of this thread.

    .page-template-default .entry-title {
    display:none;
    }

    That doesn’t work because “date” is still visible.

    Rgds,

    Frank

     

    #25555

    braddalton
    Participant
    Post count: 8835

    I added the CSS code as new rule in Firebug and it did work. Try clearing your browser cache.

    The other code you are referring too doesn’t relate to your site which is probably why it doesn’t work. ALL the code i post here is tested so it ALWAYS works otherwise i wouldn’t post it.

    I have every single SP theme installed locally.

    If you want to hide a title on a page or posts simply use the post i.d

    Example:
    [css]
    .post-id-007 .entry-title {
    display: none;
    }
    [/css]

    Hiding titles on posts and pages will reqiure different code.

    You need to be very specific with a question to get the best answer.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.