Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    You want to remove the link on blog post titles? I wouldn’t really recommend that… it’s generally expected behaviour to be able to click a post title to read the full article.

    To do this you’d need to plug the storefront_post_header() function in your child theme / custom plugin.

    Cheers.

    Thread Starter sschleifer

    (@sschleifer)

    Okay, thanks James.

    How can I separate the hyperlink attributes so that the hyperlinked blog titles are different from the other hyperlinks?

    Hi,

    You’ve added some CSS which has caused this. You’ve set all links to be 12px in size.

    Remove that CSS and you should be OK.

    BTW, I wouldn’t recommend making your changes directly in the theme, as when updates are available you won’t be able to perform them without losing your changes. Use a plugin like https://github.com/woothemes/theme-customisations instead.

    Thanks.

    Thread Starter sschleifer

    (@sschleifer)

    Yes, I’ve added the changes directly to the css because it is a child theme and I cannot create a child for the child them.

    I changed it to 12px because otherwise it would make the links in the top navigation bar too larger and they spill over to a second line. I have tried setting the navigation menu to inline to prevent this but it does not work.

    I have also tried setting separate properties for h1.entry-title but that does not work either. How do I set separate properties for the 2 hyperlinks?

    Hey,

    Just add some specificity to your selector.

    .main-navigation a {
    font-size: 12px;
    }

    That way only links in your menu will be affected.

    If you’re just making css tweaks I’d recommend installing a CSS plugin to handle that. JetPack has a module built in and there are many alternatives in the plugin repo. If you’re using any PHP snippets then you can use a custom plugin like this: https://github.com/woothemes/theme-customisations

    That way you don’t have to touch the child themes code.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Hyperlink Blog Title’ is closed to new replies.