-
AuthorPosts
-
March 14, 2018 at 12:04 pm #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 … ?
March 16, 2018 at 3:05 am #927847Hey 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,
IsmaelMarch 16, 2018 at 8:40 am #927971Hi 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.March 17, 2018 at 6:38 am #928373Hi,
Thanks for that, though I can’t see a link in private. Could you try sending it again please?
Best regards,
RikardMarch 19, 2018 at 2:21 pm #929065Thanks!
Here you go..March 20, 2018 at 11:50 am #929752Hi,
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,
IsmaelMarch 20, 2018 at 12:22 pm #929779Hi 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
March 20, 2018 at 1:58 pm #929841Hi,
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,
IsmaelMarch 21, 2018 at 10:42 am #930473Hi 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?March 22, 2018 at 6:13 am #931041Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.