Forum Replies Created
-
AuthorPosts
-
September 22, 2021 at 11:55 am in reply to: [av_privacy_google_tracking] button not working #1321887
Ok so that’s the problem.
Thanks for your help.
Best regardsThis reply has been marked as private.September 17, 2021 at 11:53 am in reply to: [av_privacy_google_tracking] button not working #1321363This reply has been marked as private.This reply has been marked as private.September 12, 2021 at 10:10 pm in reply to: [av_privacy_google_tracking] button not working #1320595Hi,
Thank you for the advice. Do you need an admin profile to check?Hello,
You mean by deploying it on another server or there is a way to create a “development copy” of the site?
Thank youThis reply has been marked as private.Hi,
Sorry for the late reply.
I think it is already enabled. The option is set to “Enable cookie consent messages = Enable cookie consent messages”.
Is there another option to check?
Thank youHello Mike,
Thank you very much for the explanation and the example, now it is clearer to me how the various options work.
Best regardsHello,
I managed to do it with the get_the_excerpt and get_the_category functions.
Thank you again for your suggestions and help!
Best regardsOk I tried it and it seems to me it works the same way as the code
if(is_singular('post')) { get_template_part('includes/related-posts'); }
added in the “template-builder.php” file, so it ALWAYS makes any related articles appear in every article, right? Doesn’t it let me choose and doesn’t add any content elements or options to the advanced layout builder? I ask you to make sure I understand and use this function correctly.
In the meantime, however, I also managed to add the shortcode to function.php, so I have a different option, but by now I would like to deepen and fully understand how all these options work.
Thank youHi Ismael, thank you for your reply.
I didn’t want to edit the template-builder.php file directly and I’d like to choose where to add the related post element, but for me it was the only solution that worked. I made a copy of template-builder.php in Enflod-Child to avoid problems.I was thinking about using the others solutions that you gave me, but I didn’t understand how to use avf_template_builder_content and the solution explained here didn’t work for me, I don’t know why but it still displays [rposts] as a text and not as an element.
Could you explain me how to use avf_template_builder_content and what mistakes I could have done inserting/* related posts shortcode = [rpost] */ function related_posts_shortcode( $attr ) { ob_start(); get_template_part( 'includes/related-posts' ); return ob_get_clean(); } add_shortcode( 'rpost', 'related_posts_shortcode' );
inside my enfold-child function.php file?
Thank you again -
AuthorPosts