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

    #659678

    Hi,

    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,
    Josue

    #660212

    I 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']) 
    								{
    #660215

    also how can i remove the small popup that shows the image file name when hovering the mouse over the masory post image ?

    #660585

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #660593

    Sure here it is

    #660616

    Hi,

    /results/ no longer exists, which Page will have the masonry?

    Best regards,
    Josue

    #660618

    THe page exist, i see it on my end

    #660664

    see private

    #660672

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

    #661077

    Any luck ?

    #661898

    Hi,

    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,
    Ismael

    #662160

    no 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

    #663184

    Hi,

    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,
    Ismael

    #663194

    So 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 7 years, 8 months ago by yingyang.
    #664595

    Hi,

    Thank you for the update. Please post the FTP login details here so that we can test it.

    Best regards,
    Ismael

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