-
AuthorPosts
-
September 2, 2019 at 7:37 pm #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)September 3, 2019 at 1:57 pm #1133379Hey 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,
RikardSeptember 3, 2019 at 4:17 pm #1133420Admin login supplied in private content
September 4, 2019 at 1:00 pm #1133816Hi,
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,
RikardSeptember 5, 2019 at 3:06 pm #1134439Tried 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?September 7, 2019 at 4:20 pm #1135385Hi simonearle,
Please have a look at the following thread:
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 7, 2019 at 9:06 pm #1135496This reply has been marked as private.September 11, 2019 at 4:10 am #1136867Hi,
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,
IsmaelSeptember 11, 2019 at 11:26 am #1136988Thank you, that is just what I needed.
September 11, 2019 at 6:07 pm #1137143Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Blog Posts Content Element Custom CSS Class’ is closed to new replies.
