Hello all, I am fairly new to WPForo but finding it very easy to configure and maintain. One issue I am having is customizing the sticky posts background colors. I have followed steps in this post to no avail.
Sticky topic styling – How-to and Troubleshooting – wpForo Support Forum
I am using the DIVI theme and tried placing the JS code in different parts of the theme control for added scripts. I have attached a screenshot.
Any other info would be great.
Hi @rngeer,
https://wordpress.org/plugins/code-snippets/
You can try add the JS code using the "Code Snippets" Plugin.
No worries, I will try the JS file upload to the theme and then the snippet plugin if that doesn't works. Appreciate the assistance.
Hi @rngeer
use this code in the Code Snippets plugin
add_action( 'wp_head', function () { ?> <script> jQuery( "i.fa-thumbtack" ).parent().parent().parent().parent().css({ "background-color": "#f5f5f5", "border" : "1px solid #ff9900" } ); </script> <?php } );
or this one to add a CSS class
add_action( 'wp_head', function () { ?> <script> jQuery( "i.fa-thumbtack" ).parent().parent().parent().parent().addClass('wpforo-topic-pinned'); </script> <?php } );
Very good, can I do it in Functions PHP section or need to upgrade for JS? (not a robust coder obviously)