ThemeShaper Forums » Thematic

Names of pages

(14 posts)
  • Started 9 years ago by lhm
  • Latest reply from amygail
  • This topic is resolved

Tags:

  1. Hi, I'm trying to modify my site so that the names of the individual pages are NOT written as headlines at the top of each page. (The names already appear on the tabs, so I feel no need to repeat them as headlines also.)

    How do I do that?

    www.pr-roman.dk

    Thanks,
    Lasse

    Posted 9 years ago #
  2. HuskerLiz
    Member

    The following works for me, as advised by Chris several months ago. I put the notes in to remind myself that this also eliminates the blog titles, so I overcome with this process. This is put into style.css.

    /* hiding titles from pages which are duplicated in navigational tools; also hides post titles which can be overcome by using h3 tags as first line of post. Be sure to continue assigning titles because these are used in navigation tools. */

    .entry-title {
    display:none;

    }

    Posted 9 years ago #
  3. Thanks very much! This works for me.

    Lasse

    Posted 9 years ago #
  4. Is there any way to do this for specific pages? On my posts page, I want the entry titles.

    Thanks,
    Lasse

    Posted 9 years ago #
  5. HuskerLiz
    Member

    I haven't found a way to automatically do it for specific pages, but I know that there are many who read these questions who are much more advanced than I am. At this point, I just put the heading above my content. There is probably something that can be done within the hooks and filters on the functions.php, but I'm not far enough into that type of coding.

    Posted 9 years ago #
  6. amygail
    Member

    HuskerLiz

    for specific page you can do something like this

    body.slug-home.entry-title {
    display:none;

    }

    body.slug-about.entry-title {
    display:none;

    }

    (change the 'slug' to the slug name of the pages.)

    Posted 9 years ago #
  7. Sorry if this is really simple, but where do I find the slug name of the pages?

    Thanks,
    Lasse

    Posted 9 years ago #
  8. amygail
    Member

    For instance - on your site "bogen" is the slug for the page "bogen"
    make sense?

    It's really helpful to work with Firefox and https://addons.mozilla.org/en-US/firefox/addon/60

    It will really help you with development and design in general - it's extra helpful when you're trying to figure out what classes and ids you need to target in your css.

    Posted 9 years ago #
  9. Yes, makes sense, but I must be doing something wrong, because it doesn't work. Just to clarify:

    I added the following code to my style.css in the child theme folder:

    body.bogen-home.entry-title {
    display:none;
    }

    body.bogen-about.entry-title {
    display:none;
    }

    No effect. (I tried without the "-about" and "-home" prefix, same result.)

    A related note: When I turn on permalinks (which I need in order to get the slugs, right?) the comment link no longer works. Suggestions?

    Thank a lot for your help and for the Firefox tip. I use Firebug, but the addon you suggested seems to be easier to work with.

    Posted 9 years ago #
  10. What is bogen? Shouldn't it be slug?

    Posted 9 years ago #
  11. amygail said that 'slug' should be replaced by the slug name for the page. Which in this case is 'bogen'. Maybe I'm not reading this right? (Have a feeling I'm making an obvious mistake.)

    Posted 9 years ago #
  12. Yep, I think so. If bogen is the slug name of your page, it should work as follows...

    This:

    body.slug-home.entry-title {
    display:none;

    }

    Should be:

    body.slug-bogen.entry-title {
    display:none;

    }

    Posted 9 years ago #
  13. Thanks, but I'm still hitting a rock here.

    As described here, http://forums.themeshaper.com/topic/page-content-disappears-after-posting?replies=9#post-6109 I tried your solution and several others but it didn't work.

    Anything I should try?

    /Lasse

    Posted 9 years ago #
  14. amygail
    Member

    Lasse - I just answered this on the other thread.

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.