Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1248219

    Hi,

    I have a page that has a blog widget on it which shows the blog entries in the Grid layout with just the title. I also want to show the author and the date. I searched around but nothing really worked or was the same problem.

    I found something about the postslider.php but I can’t make heads or tails of that.

    I guess I’d like it to look like that https://kriesi.at/themes/enfold-2017/blog/blog-default/ just without the text excerpt and the author instead of the comments.

    thanks

    Edit: I just found that the masonry layout works for this and it has the author and time. Can you add the categories to the masonry grid like they are shown in the blog grid?

    • This topic was modified 4 years, 9 months ago by OverlapAT.
    #1248394

    Hey OverlapAT,

    Please have a look at the following thread:
    https://kriesi.at/support/topic/inject-category-name-into-masonry-element/#post-615662

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1248445

    Thank you, this works.

    I tried changing this code so the categories would be a-tags instead of spans. But as soon as I change the tag to “a” it breaks it. It works if I do everything else like adding the href to the span but as soon as it’s an a-tag, it breaks the layout because of the a-tag that overlays the whole element.

    I need to append the category name to the current url and use that as a link.

    Overall I’d need the look of the blog widget (all images same size and all elements of a row the same size), author, date posted and categories attached on the element and the filter from the masonry element.

    I guess this combination is just not possible. I managed to make it kinda work on desktop but it just doesn’t look right on smaller displays.

    • This reply was modified 4 years, 9 months ago by OverlapAT.
    #1248635

    Hi OverlapAT,

    We can help you adjust the css even with the a tags. Do you have a page where we can see your customization?

    Best regards,
    Victoria

    #1248984

    Hi, thanks for the offer. I discussed it and we came to the conclusion that what we want to do with the filter/menu just isn’t possible without a large amount of work .

    So we’re back to the original question: getting the title and author into the blog widget grid layout. I found something from 2018 but the last time I tried some older support answer it didn’t work anymore.

    #1249132

    Hi OverlapAT,

    Could you please attach a mockup of what you’re trying to achieve?

    Do you mean a widget in the sidebar or an actual blog grid on the page?

    Best regards,
    Victoria

    #1249309

    I mean the actual blog grid on the page.

    It currently looks like this (see private content)

    and what I need in addition is like it is on this page: https://kriesi.at/themes/enfold-2017/blog/blog-default/. Just instead of the comments I want the author with a link to all blog entries from that author next to the date.

    Thanks

    #1249656

    Hi OverlapAT,

    Well, you will need to modify the post slider file.

    Here is a thread about it:

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

    #1249855

    Ok, I finally managed it with this before the line $output .= ‘</header>’;

    $author = get_the_author_meta( 'display_name', $entry->post_author );
    					$author_link = get_author_posts_url( $entry->post_author );
    											
    					if(!empty($author))
    						{	
    							$meta = '';
    							$meta .= '<span class="blog-author minor-meta">';
    							$meta .= '<a href="'.$author_link.'">'.$author.'</a><span class="slide-meta-del">/</span>';
    							$meta .= "<time class='slide-meta-time updated' $markup>" . get_the_time( get_option( 'date_format' ), $the_id ) . '</time>';
    							$meta .= '</span>';
    						}
                		$meta_out .= $meta; 

    Thanks

    Edit:

    It looks like it doesn’t work with the child-theme. I added what you posted at the bottom here https://kriesi.at/support/topic/post-slider-add-author-in-multi-author-blog/ but it’s not showing up. I disabled all plugins that could interfere and disabled the css/js combining from enfold

    • This reply was modified 4 years, 9 months ago by OverlapAT.
    #1250755

    Hi,

    Thank you for the update.

    Did you move the postslider.php file inside the shortcodes folder of the child theme? You may also need to move the whole directory or path of the postslider shortcode or element.

    Best regards,
    Ismael

    #1251083

    I have my postslider.php file in this folder https://pasteboard.co/JuvP6Fm.jpg
    Exactly where it is in the parent theme. Or is there some other folder where it should be?
    I’m guessing it should be an actual folder called shortcodes not avia-shortcodes? I can’t find any folder like that in the parent theme.

    Only different versions of avia-shortcodes. Where should that folder go in the child-theme?

    Edit: I found it. Shortcodes folder needs to be right in the root of the child theme. Thanks everyone

    • This reply was modified 4 years, 9 months ago by OverlapAT.
    #1251397

    Hi,

    Edit: I found it. Shortcodes folder needs to be right in the root of the child theme. Thanks everyone

    Alright. Glad it is fixed. You are welcome!

    Have a nice day.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Blog Widget, Grid Layout show author and date/time’ is closed to new replies.