Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #926559

    Hello ,
    We require some advanced help with the Avia Layout Builder.
    We are using a 3rd party plugin to be able to add repeatable content on different pages with the Avia Builder.
    Recently the plugin started having some issues with generating correct layout/markup.
    Plugin developer said he doesn’t know how to fix that.

    The result of using this plugin on a page looks like this :


    [/av_layout_row]
    [av_repeatable_content repeatable_id=’3720′]
    [av_layout_row …

    The function of the plugin is simple – it takes the content of a CPT and inserts it in the place where it is used.
    The CPT also uses avia builder to create it’s content. So it’s like a builder inside a builder.

    The issue is, as noticed after a thorough investigation, that the builder, when generating markup for a shortcode, takes in consideration the sibling tags (shortcodes) as we found in some code :

    $meta[‘siblings’][‘next’][‘tag’]
    or
    $meta[‘siblings’][‘prev’][‘tag’]

    How could we tackle that: we need a shortcode that will take content from a CPT and insert it into the page so that when changing something in the CPT content all the pages containing this shortcode shall modify accordingly. maybe a way to integrate the containing shortcodes into the siblings meta … ?

    #927847

    Hey emilgandersson,

    Thank you for using Enfold.

    Could you give us access to the plugin? We would like to test it on our own installation.

    Best regards,
    Ismael

    #927971

    Hi Ismael,
    Thanks for your reply – i look forward to get an answer.
    There is a link to the plugin n the above private data area.

    #928373

    Hi,

    Thanks for that, though I can’t see a link in private. Could you try sending it again please?

    Best regards,
    Rikard

    #929065

    Thanks!
    Here you go..

    #929752

    Hi,

    Thank you the update. I was able to install the plugin and it’s working for simple shorcodes. Please provide a copy of the shortcodes that produces the layout error. We would like to test it on our own installation.

    Best regards,
    Ismael

    #929779

    Hi Ismael,
    Thanks for your reply! I’ve added the shortcode in the private content section.
    And it’s only on mobile the styling it breaks.
    I also got a couple of staing sites, if you wanna take a closer look?

    Regards

    #929841

    Hi,

    Thank you for the info.

    Please try this filter to set the “repeatable” as full width element.

    add_filter('avf_fwd_elements', 'avf_fwd_elements_mod', 20, 1);
    function avf_fwd_elements_mod($elements) {
    	array_push($elements, "av_repeatable_content");
    	return $elements;
    }
    

    This should work just fine if there are no elements after the repeatable element.

    Best regards,
    Ismael

    #930473

    Hi Ismael,
    The above code does not work.
    It would be a great help if you would take a look at one of my sites, as the problems seems to be on all my sites.
    I can give you WP and FTP access, so you can investigate further?

    #931041

    Hi,

    Did you add any elements after the “repeatable content”? Again, it will only work properly if there are no elements after the “repeatable content” element. Unfortunately, this feature is going to require a lot modifications which are beyond the scope of support. Please a hire a freelance developer or contact our partner, Codeable.

    // https://kriesi.at/contact/customization

    I’ll ask the rest of the support team to check the thread.

    Best regards,
    Ismael

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