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

    I’ve got 2 Blog Posts content sections that I’ve given unique custom CSS classes to and neither are being used in the output page
    Under Recent blog posts the top entry (latest) should have a class of bni-blog-list-1 and the ones below should be a class of bni-blog-list-2
    Any idea what is going on?
    Theme is latest version (4.6)

    #1133379

    Hey simonearle,

    Sorry for the problem. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1133420

    Admin login supplied in private content

    #1133816

    Hi,

    Thanks for that. The likely reason for you classes not being added is because we have added new options under Enfold->Layout Builder. Could you try to make the appropriate selection under there and then save please? If it’s already the way you want it then please simply toggle an option and save in order for it to apply.

    Best regards,
    Rikard

    #1134439

    Tried that, it’s made no difference and the custom classes are not being used at all for this particular part of the layout, the rest is fine.
    Can you look into this further please?

    #1135385

    Hi simonearle,

    Please have a look at the following thread:

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1135496
    This reply has been marked as private.
    #1136867

    Hi,

    Thank you for the update.

    The custom_class meta is missing from the blog template. Please edit the config-templatebuilder > aviashortcodes > blog > blog.php file, look for this code around line 510:

    $output = "<div class='av-alb-blogposts template-blog {$extraclass} {$av_display_classes} {$custom_class}' {$markup}>{$output}</div>";
    

    Replace it with:

    $custom_class = !empty($meta['custom_class']) ? $meta['custom_class'] : "";$output = "
    <div class='av-alb-blogposts template-blog {$extraclass} {$av_display_classes} {$custom_class}' {$markup}>{$output}</div>";
    

    We’ll forward the issue to the dev team.

    Best regards,
    Ismael

    #1136988

    Thank you, that is just what I needed.

    #1137143

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Blog Posts Content Element Custom CSS Class’ is closed to new replies.