-
AuthorPosts
-
July 10, 2016 at 11:31 am #658927
Hi,
I’d like the mansory blog element to open the featured image of the blog full screen when clicking on an image instead of loading the blog page, i would i do that?
see private link for my current setup thanks
ps: my blog consist pictures only with very little text and no need for social interaction
July 12, 2016 at 7:13 am #659678Hi,
Open /config-templatebuilder/avia-shortcodes/av-helper-masonry.php and look for:
$this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
Replace it by this:
$this->loop[$key]['text_after'] .= $this->loop[$key]['author']; $this->loop[$key]['url'] = wp_get_attachment_image_src($id, apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
Regards,
JosueJuly 13, 2016 at 7:39 am #660212I tried adding both line and just the new line but no luck, when i do either it simply reload the page instead of openning the featured image full screen
here is a snapshot of the section i edited, looks good?
switch($entry->post_type) { case 'post': $post_format = get_post_format($id) ? get_post_format($id) : 'standard'; $this->loop[$key] = apply_filters( 'post-format-'.$post_format, $this->loop[$key] ); $this->loop[$key]['text_after'] .= $this->loop[$key]['date']; $this->loop[$key]['text_after'] .= '<span class="av-masonry-text-sep text-sep-author">/</span>'; $this->loop[$key]['text_after'] .= $this->loop[$key]['author']; $this->loop[$key]['url'] = wp_get_attachment_image_src($id, apply_filters('avf_avia_builder_masonry_lightbox_img_size','large')); switch($post_format) { case 'quote' : case 'link' : case 'image' : case 'gallery' : if(!$this->loop[$key]['thumb_ID']) {
July 13, 2016 at 7:45 am #660215also how can i remove the small popup that shows the image file name when hovering the mouse over the masory post image ?
July 13, 2016 at 9:56 pm #660585Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueJuly 13, 2016 at 10:31 pm #660593Sure here it is
July 14, 2016 at 12:32 am #660616Hi,
/results/ no longer exists, which Page will have the masonry?
Best regards,
JosueJuly 14, 2016 at 12:51 am #660618THe page exist, i see it on my end
July 14, 2016 at 5:42 am #660664see private
July 14, 2016 at 6:11 am #660672Found the bug, the mansory category wasnt selected, it needs to filter on RESULTS category, fixed that, let me know if you get the full screen featured image working. Also is it possible to display at the bottom of the full screen image the full text ? the mansory cut it out because it is slightly too long, i dont plan on making it very long, always short and to the point, thanks !
July 15, 2016 at 12:53 am #661077Any luck ?
July 18, 2016 at 9:18 am #661898Hi,
We are very sorry for the delay. Please replace the modification with the following:
$this->loop[$key][‘text_after’] .= $this->loop[$key][‘author’]; $this->loop[$key][‘url’] = wp_get_attachment_url( get_post_thumbnail_id($id), apply_filters(‘avf_avia_builder_masonry_lightbox_img_size’,’large’));
Best regards,
IsmaelJuly 18, 2016 at 5:44 pm #662160no luck either, it did fix the looping issue though, now it opens the post page like usual, i need to load the featured image full screen though on click without leaving the page where the mansory is
July 21, 2016 at 4:54 am #663184Hi,
We tested this modification again on our installation and the masonry items opens the image inside a lightbox. Please try it again:
$this->loop[$key]['text_after'] .= $this->loop[$key]['author']; $this->loop[$key]['url'] = wp_get_attachment_url( get_post_thumbnail_id($id), apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
Make sure that the Theme Options > Lightbox Modal Window option is enabled.
Best regards,
IsmaelJuly 21, 2016 at 5:14 am #663194So i copied the file to this path enfold-child/config-templatebuilder/avia-shortcodes
Then replaced this line
$this->loop[$key]['text_after'] .= $this->loop[$key]['author'];
with
$this->loop[$key]['text_after'] .= $this->loop[$key]['author']; $this->loop[$key]['url'] = wp_get_attachment_url( get_post_thumbnail_id($id), apply_filters('avf_avia_builder_masonry_lightbox_img_size','large'));
cleared caching, refreshed page but still the post loads when clicking the mansory picture, this is what the av-helper-masonry.php looks like, anything wrong?
`- This reply was modified 8 years, 5 months ago by yingyang.
July 25, 2016 at 1:20 pm #664595 -
AuthorPosts
- You must be logged in to reply to this topic.