-
AuthorPosts
-
February 3, 2021 at 4:42 pm #1277417
Hi Ismael,
What if I want to add a custom post tag to the Blog Post Grid Layout? I figured out how to do this on the Blog Posts themselves, but I need to be able to display the same meta information in a variety of ways/places.1) Within Features and Reviews, Tips, and Deals on home page – https://greatfamilyvacations.com/home/ – this is the ALB blog posts in Grid Layout.
2) Within Trips by Activity – https://greatfamilyvacations.com/home/ (scroll down) – this is the ALB masonry gallery – perfect grid masonry blog postsIn both places, I need to display the following:
$outlet = get_post_meta($the_id, ‘outlet’, true);
if(!empty($outlet))
{
echo ‘<span class=”outlets minor-meta”>’. __( ‘Outlet:’,’avia_framework’ ) . ‘ ‘;
echo $outlet;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}
Thanks for your help!February 3, 2021 at 6:31 pm #1277433I figured out how to do part of this – for the home page ALB blog posts in grid layout, but I need some help tweaking it. If I use the .small.avia-copyright within the Featured Image, then I can display it on the home page using the following selector. However, the following is tied to a specific post – how do I streamline this CSS so that it pulls the .small.avia-copyright for whatever post is appearing in the content slider?
#featured-news > div > div > div > div > div > div.flex_column.av_three_fourth.flex_column_div.av-zero-column-padding.avia-builder-el-5.el_after_av_one_fourth.el_before_av_hr > div.avia-content-slider.avia-content-grid-active.avia-content-slider1.avia-content-slider-even.avia-builder-el-7.el_after_av_textblock.el_before_av_hr.post-featured-news > div > div > article.slide-entry.flex_column.post-entry.post-entry-5416.slide-entry-overview.slide-loop-1.slide-parity-odd.av_one_half.first.real-thumbnail.post-format-standard > a > small { display: block!important; }
February 7, 2021 at 12:43 am #1278397 -
AuthorPosts
- You must be logged in to reply to this topic.