Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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 1 year, 7 months ago by  Jason.
    #1223570

    i 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.

    #1225457

    Hi,

    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,
    Ismael

    #1230260

    Hi! 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?

    #1230634

    Hi 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,
    Victoria

    #1230636

    Great! This works perfectly well. Thanks for your support Victoria!

    #1230746

    Hi Katjasolo,

    Glad we could help :)

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

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.