Archived topic
Shortcode does not show in Front End
8 replies · Started by lionel on January 19, 2018
Hi Tom
I placed a shortcode in a Elementor widget at http://www.fastprintingpr.com at the bottom of the page and although I can see the result in Backend it does not show at Frontend. It has to be something with the Theme since when I change Theme I can see the result in Frontend. Can you check?
Right now there are two widgets one with the shortcode and the other with Elementor Maps Widget. The one seen at Frontened is the one of Elementor.

Hi there,
The map widget? I can see it: http://www.screencast.com/t/SLhodj7uFXZf
There isn't a specific setting in GP that hide elementor shortcode.
Hi Leo;
Did you read my querry? The snapshot I sent you shows which of the widget should be shown, besides that it says: Right now there are two widgets one with the shortcode and the other with Elementor Maps Widget. The one seen at Frontened is the one of Elementor.
The widget which I refer is the one I need to be shown and it is marked in the backend screenshot included.
Thanks;
Lionel
Hi Leo
Regarding: There isn’t a specific setting in GP that hide elementor shortcode.
The issue is that the Theme does not shows the final result of the code. To make it clearer I created the Contact Page http://www.fastprintingpr.com/contacto/ and gave a blue color background to the section wher I placed the -HTML Code Widget containing the [hmapsprem id=1] code.
If you go to the link you will see just a blue strip and not the map that is supposed to be shown 
But if I change Theme you can see the map 
Hope you understand now
Looks like that shortcode is requiring jQuery, but the developer didn't list it as a requirement to their script.
You can force jQuery to load like this, but I would also contact the shortcode developer and ask them to make sure jQuery is required in their script:
add_action( 'wp_enqueue_scripts', 'tu_load_jquery' );
function tu_load_jquery() {
wp_enqueue_script( 'jquery' );
}
Thanks Tom;
As I said I am no coder. Where do I need to place this?
This should help: https://docs.generatepress.com/article/adding-php/
Wow Tom, you are a man for the history. It is working now. Really a million Thanks.
Glad I could help! :)