WordPress.org

Support

Support » Themes and Templates » underline post title in feed, but not in post

underline post title in feed, but not in post

  • Hi I want my post titles in the page that lists all posts to be underlined, so it’s clear they are links to the actual post, and I don’t want them underlined on the actual post. Everything I try underlines titles in both places.
    thanks for any help
    Kevin

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    You can’t add styling to a feed file – if that’s what you mean. If you’re referring to your main posts page or another archive page on your site, a link to your site would help…

    Wow that’s a fast response, many thanks.
    This is where I want the post titles (which are links) to be underlined: http://ds-wp.cds-jobs.co.uk/ttm/

    and this is where I don’t want the titles to be underlined,as they are not links: http://ds-wp.cds-jobs.co.uk/ttm/2010/11/dla-disability-living-allowance/.

    The site is for users with Learning Disabilities so these things are very important. Currently the users are not clicking on the title in the list as they don’t recognise a link unless it’s underlined.

    I’m not very fluent with WordPress terminology yet, I would call the first page a list, is that what you call a feed?
    Thanks

    esmi

    @esmi

    Forum Moderator

    The first page appears to be your main posts (or blog) page. Your “feed” is something entirely different – eg http://ds-wp.cds-jobs.co.uk/ttm/feed/

    This is where I want the post titles (which are links) to be underlined

    Try adding:

    .blog h2 a,.archive h3 a {text-decoration:underline;}
    .blog h2 a:hover,.blog h2 a:focus,
    .archive h3 a:hover,.archive h3 a:active,.archive h3 a:focus {text-decoration:none;}

    to the bottom of style.css. This should add underlining to post titles on your blog page and all of your archive & category pages (where you have a similar situation).

    this is where I don’t want the titles to be underlined

    Since the posts tiles aren’t links on the single post page, that won’t be a problem. My suggested fix specifically adds underlining to linked post titles only.

    Hi Esmi, thank you, that is so fantastic. It works perfectly and is way beyond my ability. you are brilliant.

    esmi

    @esmi

    Forum Moderator

    No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘underline post title in feed, but not in post’ is closed to new replies.
Skip to toolbar