Home Forums Free Themes Photo Perfect Photo Gallery Not Full Width

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #51552
    dreamframer
    Participant

    Hi guys,

    I need help. Since the theme update, my gallery is not full width anymore. Can somebody please help me?

    This is the link to take a look:

    http://dreamframer.photography/photo-gallery-print-shop/

    Thank you,

    Ivan

    #51562
    wensolutions
    Keymaster

    Hello @dreamframer,

    When inspected your site URL we found that you have used Jet-pack gallery. As the theme does not recommend Jet-pack plugin the issue might have caused due to the conflict with the plugin .

    So please use the default WordPress gallery and for your information the default gallery is working absolutely fine .

    Hope this helps .

    Best Regards!!

    #51594
    dreamframer
    Participant

    Thanks for the quick answer! I disabled JetPack, but then the gallery switched from masonry to thumbnails. Is there a way to make it look like a masonry instead?

    I also noticed that my content area is not full width anymore. Could you please tell me which line should I change to fix that?

    I turned on JetPack again temporarily.

    Thank you!

    #51601
    dreamframer
    Participant

    I managed to change it to full width by changing:

    .comtainer { width: 1300 px; }

    to

    .container { width: 100%; }

    So, Now I’m only stuck with the look of the gallery. I am sure I had JetPack activated before, and I had a similar problem with the gallery width, but I don’t remember how I fixed it.

    #51602
    dreamframer
    Participant

    I changed:

    $GLOBALS[‘content_width’] = apply_filters( ‘photo_perfect_content_width’, 640 );

    to:

    $GLOBALS[‘content_width’] = apply_filters( ‘photo_perfect_content_width’, 1920 );

    And now it looks good. I’m pretty sure there is a better solution though.

    #51625
    wensolutions
    Keymaster

    Hello @dreamframer,

    The content width can be changed by setting the global value. However if you are directly changing the code in the theme files, the changes will be lost upon theme update.

    Our suggestion is to take Child theme Approach for the task.

    Child theme references :

    https://codex.wordpress.org/Child_Themes

    You can also create the child theme using the plugin given below.

    https://wordpress.org/plugins/wp-child-theme-generator/

    After creating the child theme add in the following code in your child theme’s functions.php file :

    /**
     * [photo_perfect_child_custom_content_width change global content width]
     * @return [int] [content width value]
     */
    function photo_perfect_child_custom_content_width() {
    
    	return 1920; 
    }
    
    add_filter('photo_perfect_content_width', 'photo_perfect_child_custom_content_width' );

    Hope this helps.

    Best Regards!!

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