Remove lightbox function on Portfolio Grid ?

resolved (5 posts) (2 voices)

  1. lycosxy
    Member

    Hi,
    I would like to know how to "remove" lightbox function on the portfolio grid.
    What I want is when I click on the thumbnail, it send me to the full page like the "Read More" button).
    I'm french so I'm sorry if my english isn't good.
    Hope my message read clear.

    Posted 8 months ago #
  2. Ruderic
    Support

    Hello,

    Go to the theme folder and open the file "lib/shortcodes/15-portfolio.php". In lines #241 and #561 you will find this block of code:

    $out .= mysite_display_image( array(
    	'src' => $img[0],
    	'alt' => '',
    	'title' => '',
    	'height' => $height,
    	'width' => $width,
    	'class' => 'hover_fade_js',
    	'link_to' => $link_to,
    	'link_class' => 'portfolio_img_load',
    	'prettyphoto' => ( empty( $_post[$id][0] ) ? true : false ),
    	'group' => $img_group,
    	'preload' => true
    ) );

    Replace it with:

    $out .= mysite_display_image( array(
    	'src' => $img[0],
    	'alt' => '',
    	'title' => '',
    	'height' => $height,
    	'width' => $width,
    	'class' => 'hover_fade_js',
    	'link_to' => get_permalink(),
    	'link_class' => 'portfolio_img_load',
    	'prettyphoto' => false,
    	'group' => $img_group,
    	'preload' => true
    ) );

    Try that and let us know the results.

    Posted 8 months ago #
  3. lycosxy
    Member

    Thank you very much !
    It works perfectly !
    It is possible to remove the feature image in the full post ? (but keep it in thumbnail)

    Posted 8 months ago #
  4. Ruderic
    Support

    In the settings field of each post, you will find the option to remove the featured image from the post. Take a look at this guide: http://mysitemyway.com/docs/index.php?title=Post_Options#Disable_Featured_Post_Image

    Posted 8 months ago #
  5. lycosxy
    Member

    Oh ! Okay.
    The name as changed : "Disable Portfolio Fullsize Image "
    Thanks a lot !

    Posted 8 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme