• Resolved techgil

    (@techgil)


    We love this Simple Side Tab plugin. We would like to trigger a link via css just as we did from our top menu bar under HOME/CONTACT on our domain name.

    Basically the link “#bsd-home” trigger the LIVE Chat panel via this css class “birdseed-link”.

    This is the link code we use for txt only just in case.
    Live Chat
    Where and what css code should we add to Simple Side Tab plugin in order to accomplish this? I can access and edit any Simple Side Tab PHP file on Cpanel.
    Please let us know if this is possible.

    Thank You!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @techgil

    Add the following code to your theme’s functions.php file:

    if ( is_plugin_active('simple-side-tab/simple_side_tab.php') ) {
    
    	add_action('wp_footer', 'rum_add_birdseed_class_to_sst', 999);
    	function rum_add_birdseed_class_to_sst() {
    	echo '<script>document.getElementById("rum_sst_tab").classList.add("birdseed-link");</script>';
    	}
    	
    }

    That should add the birdseed-link class name to the tab.

    Thread Starter techgil

    (@techgil)

    Thank You so much Agentquay for taking the time to send me the code. There were different instances of functions.php as we use DIVI and a child Theme. I added it under the path …/public_html/wp-content/themes/enix/functions.php
    Just want to make sure it’s correct. Seems to work though!

    We really wanted to have these 2 great plugins, rumspeed.com/simple-side-tab and birdseed.io working together. Achieved!

    Thanks again Agentquay and Scot for all your Help.

    • This reply was modified 3 years, 11 months ago by techgil.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Trigger a link via css’ is closed to new replies.