Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Blog Posts / Grid Layout – equal height columns #1191047

    Hi all,
    I know this thread is a bit old now, but for those still looking for a solution to this I used flex. In this example I wanted a specific colour behind the blog post excerpt.

    1. Give your blogposts element a css class of “news” in developer settings of the element.
    2. Add this to your quick css:

    .news .slide-entry-wrap { 
    display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      overflow: hidden;
    }
    
    .news .slide-entry { 
    flex: 1;
    background-color:#ebebeb;
    }
    in reply to: Open link lightbox using jquery and css class #1054069

    Ok, I think I have it.
    I needed to add .magnificPopup to the script.

    <script>
    jQuery(function($) {
    
    $(window).load(function() {
    jQuery('.lightbox a.grid-image').magnificPopup({
    	  type:'inline',
    	  midClick: true
    	});
    
      $('.lightbox a.grid-image').addClass('mfp-iframe lightbox-added open-popup-link');
    $('.lightbox a.grid-image').attr('rel', 'lightbox')
    $(".lightbox a.grid-image").attr('href', function(i) { return $(this).attr('href') + '?iframe=true/'; }) 
    
    });
    
    });
    </script>

    The links now open in a lightbox without hardcoding the ?iframe=true to the end of the link in the portofolio.

    in reply to: First section top padding suddenly disappeared. #802446

    Hi Rikard,
    It seems to have gone down temporarily. Let me fix it and I’ll get back to you.

    • This reply was modified 7 years, 5 months ago by wadetaylornz.
    in reply to: First section top padding suddenly disappeared. #801363

    Hi Rikard,
    I’ve included this in the private content

    Thanks Wade.

    in reply to: Add shortcode to Masonry Excerpt #608891

    Ok I think I’ve found the answer for anyone looking to enter custom data into the masonry area.

    Line 293 of the helper-masonry.php file looks like this:
    $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$content}</div>";
    I simply added in the custom field that I created before the excerpt: {$your_meta_field}
    $items .= "<div class='av-masonry-entry-content entry-content' {$markup}>{$price}<br />{$content}</div>";

    Then on the line 406 I added in this line (where price is my custom field):
    $this->loop[$key]['price'] = $entry->price;

    Cheers,
    Wade.

    in reply to: Add shortcode to Masonry Excerpt #607948

    Thank for getting back to me Basilis,
    Sorry but it’s an Enfold question I have. I meant how do I loop through multiple fields in the helper-masonry.php? Currently I can get it to display either the excerpt, or any one custom field I want, but I would like to display more than one custom field.

    For example on line 406 of helper-masonry.php, this line calls the excerpt:
    $this->loop[$key]['content'] = $entry->post_excerpt;

    If I change it to this I can call in the field called ‘price’:
    $this->loop[$key][‘content’] = $entry->price;

    I want to basically do the following but can’t get it to work as I can’t figure out how to display multiple fields here:
    $this->loop[$key][‘content’] = $entry->price <br />, fuel_type, mileage, post_excerpt;

    Can anyone help with this?
    Thanks Wade

    in reply to: Add shortcode to Masonry Excerpt #607314

    Hi Ismael,
    The plugin is called Get Custom Field Values. I have done more playing around with it, and it seems that I have to manually enter in the post ID to the shortcode or it doesn’t find the data. It does show up when I put the post ID in the shortcode, but that’s not ideal as the client won’t want to manually enter in the post ID each time. I’m assuming that there isn’t anything that you can help with that, so I’ve been playing with a workaround.

    I’ve played with the helper-masonry.php file and have changed the following:

    $this->loop[$key]['content'] = $entry->post_excerpt;

    to this:
    $this->loop[$key]['content'] = $entry->price;

    (price is a custom field I created.) This displays well, but I would like to display other fields here too. Is there any way I can loop through multiple custom fields for the content area? such as price, mileage, doors, fuel_type etc…?

    Thanks Wade.

    • This reply was modified 8 years, 7 months ago by wadetaylornz.
    in reply to: Add shortcode to Masonry Excerpt #606397

    I have added in the following line to the helper-masonry.php file.

    Line 406: $this->loop[$key][‘content’] = do_shortcode($entry->post_excerpt);

    With that shortcodes work. However, it only lets me enter in theme shortcodes, and it won’t display custom shortcodes. Is this code only meant to show avia shortcodes, or is it simply a matter of the custom shortcodes plugin not working properly in your opinion?

    in reply to: Add shortcode to Masonry Excerpt #606380

    Hi Ismael,
    Thanks for getting back to me. I simply want to be able to display shortcodes within the excerpt of the masonry. At the moment it doesn’t display. The shortcodes aren’t theme specific ones, they are from a plugin that creates custom meta fields.

    Thanks,
    Wade.

Viewing 9 posts - 1 through 9 (of 9 total)