-
AuthorPosts
-
July 10, 2020 at 8:16 pm #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.5July 11, 2020 at 4:28 pm #1229641Hey 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,
VictoriaJuly 13, 2020 at 7:28 pm #1230078This reply has been marked as private.July 13, 2020 at 7:39 pm #1230080I 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.
-
This reply was modified 5 years, 6 months ago by
quikrete_canada.
July 14, 2020 at 6:25 pm #1230366Hi quikrete_canada,
We cannot see anything with the editor’s account. Please make that account admin.
Best regards,
VictoriaJuly 14, 2020 at 6:44 pm #1230382Done. Please try logging in again. Thanks.
July 15, 2020 at 5:22 pm #1230665Hi 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,
VictoriaJuly 16, 2020 at 11:56 pm #1231050I 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.
July 17, 2020 at 12:09 am #1231052FYI 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.
July 20, 2020 at 2:13 pm #1231715Hi,
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,
IsmaelJuly 20, 2020 at 7:48 pm #1231833Thanks Ismael! I purchased the full version of the plugin and installed/activated it. That got things working right away.
July 20, 2020 at 8:41 pm #1231860Hi quikrete_canada,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
This reply was modified 5 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
