Tagged: blog posts, category, grid
-
AuthorPosts
-
June 18, 2020 at 2:05 am #1223555
hi there,
i’m using this code to do the above:add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1); function avf_postslider_show_catergories_mod($category) { $category = 'show_business'; // or show_elegant return $category; }
this displays the category below the title, however i’d like to move it above the title.
any ideas?
many thanks,
Jason- This topic was modified 4 years, 5 months ago by Jason.
June 18, 2020 at 4:09 am #1223570i should add, i’m happy to customise a template file as i’m using a child theme, just let me know which one to look for.
June 25, 2020 at 11:47 am #1225457Hi,
Sorry for the late response. You might have to modify the config-templatebuilder\avia-shortcodes\postslider\postslider.php file in order to move the category above the title. Look for this code around line 842:
$output .= "<{$heading} class='slide-entry-title entry-title {$css}' $markup><a href='{$link}' title='" . esc_attr( strip_tags( $title ) ) . "'>{$title}</a></{$heading}>"; // modern business style if( ( strpos( $new_blogstyle, 'modern-blog' ) !== false ) && ( $new_blogstyle != '' ) ) { $output .= $meta_out; }
Move $metaout above the the $title.
Best regards,
IsmaelJuly 14, 2020 at 11:25 am #1230260Hi! I have the same Question as Jason did. I am using a Child Theme (Enfold). In my Blog Post (Grid), I would like to show the CATEGORY TAG above the TITLE of the post. Thanks for the help! PS. I am affraid to touch the codes… coudl you help?
July 15, 2020 at 4:20 pm #1230634Hi Katjasolo,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top .avia-content-slider .entry-content-header { display: flex; flex-direction: column-reverse; } .html_modern-blog #top .post-entry .blog-categories { top: 10px; }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 15, 2020 at 4:23 pm #1230636Great! This works perfectly well. Thanks for your support Victoria!
July 15, 2020 at 9:45 pm #1230746Hi Katjasolo,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.