{"id":33807,"date":"2019-03-01T09:13:22","date_gmt":"2019-03-01T09:13:22","guid":{"rendered":"http:\/\/getshortcodes.com\/?post_type=docs&#038;p=33807"},"modified":"2024-06-28T16:22:52","modified_gmt":"2024-06-28T16:22:52","slug":"shortcodes-do-not-work","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/shortcodes-do-not-work\/","title":{"rendered":"Shortcodes do not work"},"content":{"rendered":"\n<p>Most common reasons for inoperativeness of the plugin are listed below. Follow all recommendations to solve your problem.<\/p>\n\n\n<p class=\"h2\">Table of contents<\/p>\n\n<ol><li><a href=\"#3rd-party-themes-and-plugins\">3rd-party themes and plugins<\/a><\/li><li><a href=\"#javascript-errors\">JavaScript errors<\/a><\/li><li><a href=\"#a-wrong-prefix-of-shortcodes\">A wrong prefix of shortcodes<\/a><\/li><li><a href=\"#missing-wp_head-and-wp_footer-template-tags\">Missing wp_head and wp_footer template tags<\/a><ol><li><a href=\"#wp_head\">wp_head<\/a><\/li><li><a href=\"#wp_footer\">wp_footer<\/a><\/li><\/ol><\/li><li><a href=\"#custom-formatting\">Custom formatting<\/a><\/li><\/ol><\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"3rd-party-themes-and-plugins\">3rd-party themes and plugins<\/h2>\n\n\n\n<p>If something is not working, a likely cause is an outdated or&nbsp;non-compatible plugin or theme.&nbsp;The best thing to do is to narrow down the cause.&nbsp;To do this you can temporarily:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Switch to a default WordPress theme (Twenty Nineteen etc.) and test again;<\/li>\n\n\n\n<li>Disable all other plugins except for Shortcodes Ultimate itself, retest, and re-activate plugins until the issue occurs. This will help you find the culprit.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"javascript-errors\">JavaScript errors<\/h2>\n\n\n\n<p>JavaScript errors are the most common problem. These errors often lead to incorrect operation of plugins or themes. If shortcodes like&nbsp;<em>spoiler<\/em>,&nbsp;<em>tabs<\/em>,&nbsp;<em>expand<\/em>,&nbsp;<em>carousel<\/em>&nbsp;or&nbsp;<em>slider<\/em>&nbsp;(this is not the full list) do not work, then most likely there are JavaScript errors.<\/p>\n\n\n\n<p>Read the following Codex article to diagnose JavaScript errors:<\/p>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/support\/article\/using-your-browser-to-diagnose-javascript-errors\/\">Using Your Browser to Diagnose JavaScript Errors<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"a-wrong-prefix-of-shortcodes\">A wrong prefix of shortcodes<\/h2>\n\n\n\n<p>Please note that all shortcodes of Shortcodes Ultimate plugin have a special prefix in the name. By default this prefix is su_. If for some reason, you&#8217;ve added shortcodes to the editor without this prefix, they may not work. Ensure that all shortcodes are written with the necessary prefix, for example:<\/p>\n\n\n\n<p>You can see the right prefix on the plugin settings page at: Dashboard &#8211; Shortcodes &#8211; Settings &#8211; Settings tab. On this page, you will see &#8220;Shortcodes prefix&#8221; text field. The meaning of this field should match the prefix used in the editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"missing-wp_head-and-wp_footer-template-tags\">Missing wp_head and wp_footer template tags<\/h2>\n\n\n\n<p>Ensure your active theme contains&nbsp;<em>wp_head<\/em>&nbsp;and&nbsp;<em>wp_footer&nbsp;<\/em>template tags. With the help of these tags (PHP-functions), WordPress knows where to connect style and script files. If the theme does not contain one of these tags, then Shortcodes Ultimate plugin (as well as many other plugins) will work incorrectly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp_head\">wp_head<\/h3>\n\n\n\n<p>Open&nbsp;<em>header.php<\/em>&nbsp;file of your active theme and find call of&nbsp;<em>wp_head()<\/em>&nbsp;function there to ensure your theme contains&nbsp;<em>wp_head<\/em>&nbsp;tag. If you don&#8217;t find it, then add the function call manually, before&nbsp;<em>&lt;\/head&gt;<\/em>&nbsp;closing tag. The code should look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;head&gt;\n  ...\n  &lt;?php wp_head(); ?&gt;\n&lt;\/head&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp_footer\">wp_footer<\/h3>\n\n\n\n<p>Open&nbsp;<em>footer.php<\/em>&nbsp;file of your active theme and find call of&nbsp;<em>wp_footer()<\/em>&nbsp;function there to ensure your theme contains&nbsp;<em>wp_footer <\/em>&nbsp;tag. If you don&#8217;t find it there, then add the function call manually, before&nbsp;<em>&lt;\/body&gt;<\/em>&nbsp;closing tag. The code should look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  ...\n  &lt;?php wp_footer(); ?&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"custom-formatting\">Custom formatting<\/h2>\n\n\n\n<p>This tip may help you if you face any problems with operation of row and column shortcodes. Go to plugin settings page: Dashboard &#8211; Shortcodes &#8211; Settings &#8211; Settings tab. Find &#8220;Custom formatting&#8221; setting. Try to enable or disable &#8220;Custom formatting&#8221;. Press the &#8220;Save Changes&#8221; button after enabling\/disabling.<\/p>\n\n\n\n<p>More information on this setting can be found in the &#8220;Plugin settings&#8221; article.<\/p>\n","protected":false},"featured_media":0,"template":"","docs_category":[22],"class_list":["post-33807","docs","type-docs","status-publish","hentry","docs_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/33807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=33807"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=33807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}