Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1171275

    Hello

    Based on the av_blog shortcode and the loop-index.php i created a custom shortcode which shows meta-data, a forward button and a masonry gallery for each element of a chosen taxonomy. The masonry gallery is created with the av_masonry_gallery shortcode, where the ids of the images are dynamically adjusted according to the element.

    Before christmas the customer updated the system (WP 5.3.2 and Enfold 4.6.3.1) and now the galleries are no longer displayed correctly. This means that the gallery of the first entry is displayed correctly, the remaining galleries are located outside the wrap_all container and therefore cover the whole screen width.

    I would be glad if you could help me to solve this problem. With wordpress 5.2 and Enfold 4.6 everything worked fine.

    The link to the website as well as the source code of my customizations can be found in the private data of the post.

    Many thanks in advance

    #1171685

    Hey Jeannette,

    Thank you for the inquiry.

    The filter provided in the following thread should help.

    // https://kriesi.at/support/topic/trouble-with-the_content-and-advanced-layout-editor/#post-1119884

    This will allow execution of shortcodes that are not directly added in the advance layout builder.

    Best regards,
    Ismael

    #1172160

    Hi Ismael

    Many thanks for your answer.
    I’ve added the filter to the functions.php but with no luck. The problem still exists.

    In the meantime I found out that during the update only Enfold was updated from version 4.5.1 to 4.6.3.1. WordPress was already installed in the latest version 5.3.2.

    #1172287

    Hi

    I just found out that the problem only occurs when i insert the Masonry Gallery in the custom loop-index.php with do_shortcode("[av_masonry_gallery ...]")

    Is there an alternative way to use the ALB shortcodes without do_shortcode()?

    Thanks
    Jeannette

    #1172616

    Hi,

    Thank you for the update.

    Try to replace the filter with the following code.

    /**
     * Allow to force execution of shortcodes e.g. for plugins who call shortcode via an ajax call.
     * Enfold uses this to execute the shortcode for modal popup preview in backend
     * 
     * @since 4.5.7.2
     * @param boolean
     * @param aviaShortcodeTemplate $obj_sc
     * @param array $atts
     * @param string $content
     * @param string $shortcodename
     * @param boolean $fake
     * @return boolean true if sc should be executd regardless of page structure - same as popup preview
     */
    function my_custom_exec_sc_only( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake )
    {
        return true;
    }
    add_filter( 'avf_alb_exec_sc_only', 'my_custom_exec_sc_only', 10, 6 );

    Or post the WP and FTP login details in the private field so that we can check the issue further.

    Best regards,
    Ismael

    #1172791

    Hi Ismael

    Great, this did the trick! Thank you so much.

    Kind regards
    Jeannette

    #1173090

    Hi Jeannette,

    Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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