Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #725767

    Hiya

    I’ve adjusted the post slider on the my homepage to remove the comments count and so now have
    Category
    Post title
    Post date

    Ideally i’d like to change it to
    Post date – Category
    Post title

    I found this entry from 2014: https://kriesi.at/support/topic/post-date-above-post-title/ but it looks like the line numbers and code has changed since then.

    Any help would be very much appreciated
    Richard

    #726974

    Sorry guys, hadn’t realised my support had expired. I’ve purchased additional support now.

    #727149

    Hi,

    Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Andy

    #727152

    Hi Andy, yes of course.

    I’ve applied display: inline; to the post heading so not sure how that will affect the reordering?

    Thanks
    Richard

    #728329

    Hi,

    Please firstly install and start using child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and then refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    then go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

                        if($show_meta && !empty($excerpt))
    					{
    						$meta  = "<div class='slide-meta'>";
    						if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    						{
    							$link_add = $commentCount === "0" ? "#respond" : "#comments";
    							$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    
    							$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    						}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    						$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    						$meta .= "</div>";
    						
    						if($blogstyle !== "elegant-blog")
    						{
    							$output .= $meta;
    							$meta = "";
    						}
    					}

    cut & paste it right above following line

    
    $output .=  "<h3 class='slide-entry-title entry-title' $markup><a href='{$link}' title='".esc_attr(strip_tags($title))."'>".$title."</a></h3>";

    Best regards,
    Yigit

    #731259

    Hi Yigit

    Thank you very much for the solution for that. Worked fine.

    Richard

    #731406

    Hi Richard,

    Great, glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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