Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1191551

    Hi,

    I want to show the category name in the blog article widget in the builder.
    Now it shows it like this:

    Blogtitle
    Date
    Excerpt

    I want it to show it like this:

    Category | Date
    Blogtitle
    Excerpt

    Also I want the whole <article> to be the link instead of only the thumbnail and blogtitle.

    #1191962

    Hey Jarmo,

    Could you please attach some screenshots of the issue?

    Best regards,
    Victoria

    #1192040

    Hi,

    This is how it looks now:
    https://ibb.co/kS2VyTf

    I want it to look like this:
    https://ibb.co/SyzSNbV

    ‘diensten’ = post category

    So I am looking for any hook to make it like the last link.

    #1192057

    Hi Jarmo,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1192060

    See private content.
    Also I want the whole <article> to be the link to the post instead of only the picture and the title

    #1192723

    Hi Jarmo,

    Thank you.

    To make all these changes you’ll need to edit the /enfold/config-templatebuilder/avia-shortcodes/contentslider/contentslider.php file.

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

    #1193463

    Ok, thanks. figured it out. It was in the postslider.php by the way.
    Last question. How can I echo the category before the date?

    This is the part of the date now:

    if( ( $show_meta && ! empty( $excerpt ) ) || in_array( $show_meta_data, array( 'always', 'on_empty_content' ) ) )
    {
      $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( strpos($blogstyle, 'elegant-blog') === false )
    			{
    			$output .= $meta;
    			$meta = "";
    			}
    }

    What do I need to add to it to get the output like this:
    Category | Date

    I only want to show the category without the parent category

    • This reply was modified 4 years, 9 months ago by Jarmo.
    #1193625

    Hi Jarmo,

    You can see how it’s done here in the /includes/loop-index.php:
    Image 2020-03-16 at 20.52.07.png

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

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