Site logo

[Resolved] Shortcode does not show in Front End

Home Forums Support [Resolved] Shortcode does not show in Front End

Home Forums Support Shortcode does not show in Front End

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #475167
    lionel

    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.
    Image shows issue

    #475340
    Leo
    Staff
    Customer Support

    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.

    #475397
    lionel

    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

    #475458
    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 Map to be shown as a result of the code

    But if I change Theme you can see the map Map shown

    Hope you understand now

    #475755
    Tom
    Lead Developer
    Lead Developer

    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' );
    }
    #475819
    lionel

    Thanks Tom;

    As I said I am no coder. Where do I need to place this?

    #475926
    Tom
    Lead Developer
    Lead Developer
    #475933
    lionel

    Wow Tom, you are a man for the history. It is working now. Really a million Thanks.

    #476079
    Tom
    Lead Developer
    Lead Developer

    Glad I could help! 🙂

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