Okay
  Public Ticket #3678625
Adding other meta info to blog archive
Closed

Comments

  •  7
    Kurtis started the conversation

    There is not an option I've seen in the Salient menus, but I'd like to be able to add tags to the blog posts in the masonry layout. I am using a child theme and have a style.css and functions.php file, but I'm not sure where else to look that would declare this. The closest I found was blog.php but that function is specifically for the Related Posts on single page blog view.

    Right now it looks like it is using get_the_category() function starting on line 650 of blog.php, but there doesn't seem to be get_the_tags() function called anywhere.

    I can see that I can manually find a list of tagged posts (ignore duplicate images etc... slowly adding and updating content and images, right now it's just barely up for testing):

    https://2sapphires.com/tag/downtown/

    https://2sapphires.com/tag/jw-marriott-hill-country/

    https://2sapphires.com/tag/hotel-emma/

    I've attached an image showing my desired functionality on the current Squarespace-based site that I'm trying to transition from while making some improvements along the way.


    ***BONUS***

    I found what I assume is a typo while searching for 30 minutes for an icon of the infinity logo lol. In icon-collections.php line 529 says:

    'iconsmind-Inifity' => '\eae0', 

    I think the reason I couldn't find it is that it should say "Infinity" and still link to //eae0.

    Count that as my potential contribution to the next release :D

    Attached files:  Screenshot 2024-07-03 at 12.07.35 AM.jpg

  •  1,039
    ThemeNectar replied

    Hey Kurtis!

    The file which would need to be updated to include that custom data would be salient/includes/partials/blog/styles/masonry-material/entry.php 

    You can copy that into your child theme, keeping the same file path, in order to add in any customizations.

    Also, thanks for reporting the possible issue in iconsmind. I've noted to look further into itsmile.png

    Kind regards

  •  7
    Kurtis replied

    https://2sapphires.com/blog/

    Alright, so I managed to get the tags in there by creating a new post-categories-tags.php and referencing that in the child entry.php instead of post-categories.php. I got it to add commas when there are multiple categories or tags, and separated categories and tags with a little bullet point.

    Here's the thing I can't quite figure out...

    How do I address the spacing when it wraps lines, it is spacing them so far apart but does not appear to be using padding or margin to do so, based on what I can see when I 'inspect' with Chrome.

    Any thoughts?

    Attached files:  Screenshot 2024-07-03 at 7.52.38 PM.jpg
      Screenshot 2024-07-03 at 7.52.44 PM.jpg

  •  1,039
    ThemeNectar replied

    Hey Kurtis, you can reduce that vertical spacing by adding the following snippet into the custom CSS box located in the Salient options panel > General Settings > CSS/Script related tab:

    .masonry.material .masonry-blog-item .meta-category {
      line-height: 1;
    }
    

    Kind regards