WordPress.org

Ready to get started?Download WordPress

Forums

underline post title in feed, but not in post (6 posts)

  1. KevinLycett
    Member
    Posted 3 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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...

  3. KevinLycett
    Member
    Posted 3 years ago #

    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

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  5. KevinLycett
    Member
    Posted 3 years ago #

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

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    No problem :-)

Topic Closed

This topic has been closed to new replies.

About this Topic