Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1248222

    Hi Guys,

    Hope you are doing well.

    I have a little problem. On a site where we are using Enfold the blog layout looks different when using Avia Page Builder.

    As an example:

    1. When using WordPress standard editor Blog layout looks as expected:

    2. When switching blog entry to Avia or creating a new one with Avia things like Headline, Post-Date, Social Buttons etc. are missing:

    Do you have any idea how this can be solved?

    Thanks,
    Frank

    #1248396

    Hey Frank,

    Please have a look at the following thread:
    https://kriesi.at/support/topic/retreving-post-meta-when-using-advanced-layout-builder-for-blog-posts/

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1249723

    Hey Victoria,

    Thank you for your reply. Unfortunately the solutions in the thread you mentioned doesn’t work.

    For some reason the blog entry is not shown as expected when using Avia Layout Architect (2nd screenshot). When using WP classic editor blog entries are shown as expecting with blog title, date + tags and social buttons (1st screenshot).

    Additional info, found following PHP code in Child-Themes function.php:

    //disable for posts
    add_filter('use_block_editor_for_post', '__return_false', 10);
    
    // disable for post types
    add_filter('use_block_editor_for_post_type', '__return_false', 10);
    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('.entry-content-header h2.entry-title', '<h3></h3>'); // weitere Zeilen anfügen durch semicolon getrennt
          replaceElementTag('.category-term-description p', '<h1></h1>');
      }(jQuery));
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');

    Would be great to find a solution for this.

    Thanks,
    Frank

    #1250071

    Hi Frank,

    Thanks for the update. The results you are getting with the layout builder active are actually correct, as you need to add all content manually to posts using the layout builder. You can use elements from the layout builder to replace what is missing.

    Best regards,
    Rikard

    #1252563

    Hi Rikard,

    Sorry for my late response. I’ve been off for a couple of days. It’s fine for me to add layout elements (1/1, 1/2 etc.) or text areas and images manually, because these are all elements where the layout builder actually was built for.

    The problem is that in my opinion 3 basic features are not shown when creating a blog post using Avia Layout Builder:

    1. Post Title -> See my first post “Was für ein richtig “süße” Geste” title shown with classic editor but not when using layout builder. In this case we’re talking about the post title which is not part of the layout builder itself.

    null

    Do you mean i have to add the post title as an element again in the layout builder section?

    2. Post Data / Category / Tags -> Also standard elements of a regular WP blog post. Or I am wrong?
    3. Social Sharing Buttons -> Ok, might be added manually somehow. It’s at least a support element from Layout Builder.

    It would be great to get quick solution for this, e.g. adding these elements on the top and at the bottom of each post by default.

    Best regards,
    Frank

    #1252900

    Hi Frank,

    Thanks for the update. Yes, the title needs to be added manually as well, you could copy your title then insert it in a Special Heading element for example.

    The Post Metadata can be added using the Post Metadata element, and the social sharing buttons can be added using the Social Share Buttons element.

    If you think this is too much work then you can use the default WordPress editor, and if you should need layout elements from the Layout Builder, then you use the magic wand tool to import their shortcodes. The last icon on the top row: https://imgur.com/GReRtrs

    Best regards,
    Rikard

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