-
AuthorPosts
-
March 9, 2020 at 3:41 pm #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
ExcerptI want it to show it like this:
Category | Date
Blogtitle
ExcerptAlso I want the whole <article> to be the link instead of only the thumbnail and blogtitle.
March 10, 2020 at 6:24 pm #1191962Hey Jarmo,
Could you please attach some screenshots of the issue?
Best regards,
VictoriaMarch 10, 2020 at 10:37 pm #1192040Hi,
This is how it looks now:
https://ibb.co/kS2VyTfI 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.
March 10, 2020 at 11:01 pm #1192057Hi Jarmo,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaMarch 10, 2020 at 11:10 pm #1192060See private content.
Also I want the whole <article> to be the link to the post instead of only the picture and the titleMarch 12, 2020 at 7:37 pm #1192723Hi 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,
VictoriaMarch 16, 2020 at 12:48 pm #1193463Ok, 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 | DateI only want to show the category without the parent category
- This reply was modified 4 years, 9 months ago by Jarmo.
March 16, 2020 at 8:52 pm #1193625 -
AuthorPosts
- You must be logged in to reply to this topic.