• Hello friend, in an attempt to have [scriptless] show in multiple my footer menu widget area on multiple pages including archives I am using the following plugins… Shortcode Widget by Gagan Deep Singh and Widget Context by Kaspars Dambis. The error that is plaguing me is…When set to a single widget area (my home page) everything is fine but soon as I add to any additional area, home page is fine but the other area shows no buttons, only links as text. Any input would be helpful but kindly keep in mind I’m pretty much a intermediate beginner and no developer by any means. Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Without seeing what you are seeing, my guess is that the plugin styles are not loading, so you are getting the buttons output without the corresponding CSS.

    If checking the manual setting for your individual post types won’t meet your needs, you can force the plugin styles to load sitewide, using this filter:

    `
    // Allow Scriptless Social Sharing buttons to load anywhere on the site.
    add_filter( ‘scriptlesssocialsharing_can_do_buttons’, ‘__return_true’ );
    `

    This will allow the buttons to display anywhere, as well as load the necessary styles.

    Note: I would guess that buttons in a widget area on a non-singular post/page/etc. will not work, as there is no context for them. The plugin queries the database to get each post’s related title, URL, etc…it can still work on archive pages if the buttons are within the context of a post, but a widget area is probably not going to meet that criteria.

    Thread Starter shirtguy72

    (@shirtguy72)

    Thank you and forgive me but, where would I add the snippet of code you provided?

    Plugin Author Robin Cornett

    (@littlerchicken)

    You can add it to your theme’s functions.php file, if you do not have a specific place where you add code snippets. Just make sure your site files are backed up before you go editing. Here’s the snippet again (sorry, I used the wrong markup in the previous post; use this one instead):

    
    // Allow Scriptless Social Sharing buttons to load anywhere on the site.
    add_filter( 'scriptlesssocialsharing_can_do_buttons', '__return_true' );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[scriptless] in multiple widget areas’ is closed to new replies.