Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1229476

    I added a Custom HTML widget to the Displayed Everywhere widget section. I then added a shortcode for a LayerSlider…

    [layerslider id="5"]

    The problem is, this doesn’t work on any page except the main homepage. All other pages just show the text: [layerslider id=”5″] instead of a small image slideshow on the sidebar.

    So I did some research and many people recommended adding the following code to functions.php in order to get shortcodes working in widgets…

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode', 11);

    That didn’t work either. Any ideas?

    WordPress 5.4.2
    Enfold Theme 4.7.5
    PHP 7.3.5

    #1229641

    Hey quikrete_canada,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1230078
    This reply has been marked as private.
    #1230080

    I should also note, although I did try adding that code to the function.php file, I realized after that this file would just get overwritten during updates. So I then installed the “Code Snippets” plugin and created a new code snippet and put those two lines of code in it. Neither solution worked however, so there may be a bug in the theme that is preventing the layerslider from working on the sidebar on any page other than the homepage.

    #1230366

    Hi quikrete_canada,

    We cannot see anything with the editor’s account. Please make that account admin.

    Best regards,
    Victoria

    #1230382

    Done. Please try logging in again. Thanks.

    #1230665

    Hi quikrete_canada,

    Thank you, this is very odd. I tested many things but could not get it to show.

    Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.

    Best regards,
    Victoria

    #1231050

    I disabled all plugins one by one and cleared cache each time, refreshing the website – no change unfortunately. The layerslider still only works on the home page sidebar, no where else. Thanks.

    #1231052

    FYI it doesn’t appear to be an issue with the layerslider. I actually tried using other shortcodes (such as [sitemap]) and they wouldn’t work on the sidebar at all – even on the home page. The layerslider shortcode only works on the home page for some reason. No other shortcodes seem to work in the sidebar with the Enfold theme.

    #1231715

    Hi,

    Thank you for the update.

    The layer slider shortcode is disabled by default and is only available in the premium or standalone version.

    // https://kriesi.at/support/topic/layerslider-in-widget-area/

    And it looks like you’re trying to use shortcodes that are exclusive to WordPress.com sites.

    // https://codex.wordpress.org/Shortcode#Built-In_and_Additional_Shortcodes

    Please make sure that you’re only using those that are actually available in WordPress.org.

    Best regards,
    Ismael

    #1231833

    Thanks Ismael! I purchased the full version of the plugin and installed/activated it. That got things working right away.

    #1231860

    Hi quikrete_canada,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.