• Resolved Sean

    (@sean-h)


    Hi Hector,

    Just wondering if there is an easy way to have the WPP widget adopt the same hyperlink styling as the rest of the site. In other words, #007FFF for a link and #AD1519 on hover, no underline. Or, to be able to customise it apart from the rest of the site.

    I’ve been doing my due diligence and found something you put on Git, but it looks a bit complicated for what I need as I could otherwise live with black underline, for now anyway.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @sean-h,

    Yes it is possible to customize any of the bundled popular posts themes, like the Cardview Compact one you’re using. See Customizing an Existing WordPress Popular Posts Theme for more details.

    If you have any further questions please let me know.

    Thread Starter Sean

    (@sean-h)

    Thanks, I’ll give that a go, but I was hoping for a more simple way, as in just being able to add the required css and be done with it, much like css is added to the main theme customiser. I had seen that Git article already.

    Anyway, what might be interesting to note is when I first started trying out about 50 shades of blue for links in the body the title links in the WPP widget also went the same blue, but soon reverted to their standard black. This is what prompted me to think that maybe it was that simple, the widget seemed to ‘see’ what I was doing with the main css.

    Right, lets copy/move some files and folders around….

    Thread Starter Sean

    (@sean-h)

    That wasn’t so hard. Tried it on my hobby site, it worked. I’ve even poked around and made changes directly in phpMyAdmin, so not sure why I was hesitating to do this.

    I’m guessing these new folders/files in the theme (Divi) won’t get overwritten on the next theme update? Or should I be using a child?….

    Otherwise we can consider this resolved.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey, good day!

    That wasn’t so hard. Tried it on my hobby site, it worked. I’ve even poked around and made changes directly in phpMyAdmin, so not sure why I was hesitating to do this.

    Glad to know you were able to work it out. Facing the unknown is something we all dread so good job!

    I’m guessing these new folders/files in the theme (Divi) won’t get overwritten on the next theme update? Or should I be using a child?

    When you’re using someone else’s theme it’s always best to use a child theme when you need/want to customize stuff. Pretty sure theme updates wipe all existing files & folders out just like plugin updates do.

    Thread Starter Sean

    (@sean-h)

    Ok, well so much for that. I’ve never needed to use a child theme in 10 years working with WordPress, and I’m not at all keen to start now. I like to keep it simple, when child themes have always seemed to add yet another level of unnecessary complexity, assuming you can even find a good one. The workarounds I’ve found for the required design changes have always seemed easier to implement than a child theme.

    So yea, I guess the question remains; can there be a simple, straight forward way to modify the css of the WPP widget?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Well, there’s always the second option mentioned on the wiki: hooking into wpp_additional_theme_styles to add your custom CSS rules.

    If you go that route you may need to install something like Code Snippets or a site-specific plugin to add your filter hook to your site without having to modify the Divi theme.

    Thread Starter Sean

    (@sean-h)

    Thanks, I’ve been through all that stuff already. I only wanted to remove the underline and instead have the text go from black to red on hover, that’s it. Hardly worth all the effort just for that. What was important to change was the colour of hyperlinks in the post body, and that was simple enough, no child theme required. But as mentioned, the WPP widget titles picked up on those changes and did in fact change colour, briefly. I still wonder why. It would be great if it could just keep doing that, based on the custom css I have added to Divi for the post hyperlinks.

    Anyway, appreciate the help. I will marked this post ‘resolved’.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Widget title link colour’ is closed to new replies.