Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 posts

    In 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!

    #1277433

    I 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;
    }
    
    #1278397

    Hi,
    Sorry for the late reply and glad you were able to sort out your first issue. For the css please try this:

    .slide-entry > a > small {
    display: block !important;
    }

    Best regards,
    Mike

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