How to make images look sharper? + Light box in white

Mauer Themes Support Stills How to make images look sharper? + Light box in white

This topic contains 14 replies, has 2 voices, and was last updated by  meli 2 days, 10 hours ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2000

    meli
    Participant

    Hello Paul,

    Thank you for such beautiful work, your theme is delightfully peaceful and your code very clean.
    I have these questions:

    1/ about the predetermined size images: when I insert a 2100×1400 px image in a portfolio project, it shows a 1440×960 pic. As the original pic has already been optimized for web, the displayed pic 1440×960 looks ‘bad’.
    This doesn’t happen for the #half tagged images as they are showing smaller.
    If I would like the images without #half to look sharper without clicking the light box, and I understand nobody wants any page to load too long, is it possible to change the default 1440×960? 1800×1200 would be better. I imagine it would affect both #half tagged and not pics.

    2/ about the lightbox: could you activate the white skin option to use a white background with grey svg arrows?

    3/ the re-order plugin works fine on home but not on the categories filters, they are displaying the projects by date.

    Please let me know.
    Thank you in advance.

    #2003

    meli
    Participant

    Hi again Paul,

    Regarding the inserted images in a portfolio project, could it be possible to insert them just at their size, not resized at 1440×960 px?
    Thank you, kind regards.

    #2030

    Paul
    Keymaster

    Hello Meli,

    Thank you for such a nice characteristic of my work. Creating a delightfully peaceful theme certainly is what I was pursuing, and I’m very glad this resonates with you.

    As for your questions:

    A little disclaimer: It’s best to do such modifications in a child theme or a custom plugin, so they do not get overwritten during theme updates. However, of course, you can always re-introduce them after a theme update.

    1. The pictures in the portfolio projects are displayed in a resolution that is bigger than the actual area they occupy on the screen. This is done for sharpness.

    You can take this further and switch to displaying the same images as the ones in the lightbox. These are actually restrained to 2100px by the bigger side.

    To do that, please go to functions.php file in the theme folder, find the following line (should be around line 416):

    $reg_thumb_size = 'mauer_stills_thumb_6';

    replace it with this and save the file:

    $reg_thumb_size = 'mauer_stills_thumb_7';

    This will affect only the regular thumbs (not the #half’s).

    Then please install the Force Regenerate Thumbnails plugin. Once you activate it, please go to ‘Tools’ > ‘Force Regenerate Thumbnails’, click ‘Regenerate All Thumbnails’ and wait until the process is over.

    2. This theme’s lightboxes are powered by PhotoSwipe library, which does not have a light skin out of the box. I made a little research, and this is not a quick customization that I could provide off the top of my head. If you really need this done, please drop me a letter to pavel (at) mauer.co, and I’ll let you know about the cost of doing this. Please mind that customizations are not included into support according to ThemeForest rules).

    3. Please add this to the end of the function.php file, just before the ‘?>’, like this :

    if (!function_exists('mauer_stills_project_cat_to_menu_order')) :
    
    	function mauer_stills_project_cat_to_menu_order($query) {
    		if (!is_admin() && $query->is_main_query()) {
    			if ($query->is_post_type_archive('project') || is_tax('project_cat')) {
    				$query->set('orderby', 'menu_order');
    			}
    		}
    	}
    
    endif;
    
    add_action('pre_get_posts', 'mauer_stills_project_cat_to_menu_order');

    And your category pages will have the same sorting as the page showing All projects.

    If you enjoy the theme (or the support), I would really appreciate if you could rate it on ThemeForest. This literally takes a moment, and creates a big difference. Thank you.

    Regards,
    Paul

    #2041

    meli
    Participant

    Hello Paul,

    Thank you for your time and the details in your answers. I was very worried about not receiving any news and we can now now continue to work on our website.

    Yes we work with a child theme.

    1. ok, we’ll do it and let you know.
    2. ok, we’ll think about it.
    3. ok, we’ll do it and let you know.

    Of course we will rate both theme & support once we’ll finish and publish our website.

    Will we have to update Stills theme when Gutenberg and WordPress 5.0 will be released?

    Thank you, all the best,
    Meli

    #2043

    meli
    Participant

    Hello Paul,

    All works fine, thank you.

    Regarding the point 1.
    When we optimize our photos for web, they are ready to be seen, both in quality and weight.

    The issue is that WP images process to convert them in 1440 px ($reg_thumb_size = ‘mauer_stills_thumb_6’) or 2100 px ($reg_thumb_size = ‘mauer_stills_thumb_7’) shows a very strong loss of quality (especially with textures and texts) .
    That’s why we need the inserted photos (not the #half tagged ones ) to be displayed in the standard way as we have uploaded them.

    Waiting for you, thank you again.

    Regards.

    #2044

    meli
    Participant

    * sorry: not the inserted image in a portfolio but the images which are not tagged #half in galleries

    #2053

    Paul
    Keymaster

    Hello Meli,

    Ok, if you want your portfolio project pages to show images in the original size that you uploaded, please go to the functions.php file in your theme folder (or your child-theme based solution) and replace the line again:

    You have previously replaced

    $reg_thumb_size = 'mauer_stills_thumb_6'; with $reg_thumb_size = 'mauer_stills_thumb_7';

    Now please replace this line with:

    $reg_thumb_size = 'full';

    The end result should look like this:

    You might need to clear your browser cache to see the changes.

    As for Gutenberg, the theme will be updated to support it at some point after it is officially included into WordPress core.

    Please excuse my late reply. Unfortunately, I don’t have a lot of time these days to provide code customizations outside support.

    Regards,
    Paul

    #2077

    meli
    Participant

    Hi Paul,
    All is working very fine and we love the peaceful mood of your theme so much!
    Please don’t be sorry for the late reply, we can understand as we are overhealmed by work too. Your help is very useful, you are welcome, thanks for taking the time.
    I think this is the last question before publishing the website and working details online: we have figured how to modify the ‘proj’ and ‘proj-cat’ but is there away to eliminate ‘proj’ to have clean url links?

    Thank you again.

    #2082

    meli
    Participant

    ps. we hope you could answer as soon as possible to be able to continue working full-time this week-end. Thanks.

    • This reply was modified 1 month, 3 weeks ago by  meli.
    #2086

    Paul
    Keymaster

    Hello Meli,

    There are plugins that let you remove the slugs of custom post types and custom taxonomies.

    I’ve tried these two and they worked with the theme:
    Remove slug from custom post type
    Remove Taxonomy Base Slug

    After you install them (the second one also requires to select the taxonomies to be applied to), make sure you flush your permalinks for the changes to take effect. “Settings > Permalinks” > click “Save Changes”.

    Please mind that removing the slugs is, in essence, tricking the WP core, and WP was not originally designed to work this way. These slugs are a WP-related thing, rather than a theme-related feature. The theme (actually the bundled custom plugin) just selected a name for the slugs: ‘proj’ or ‘proj-cat’.

    Regards,
    Paul

    #2099

    meli
    Participant

    Perfect, thank you so much! Wish you a happy week-end.

    #2100

    Paul
    Keymaster

    Meli, you are welcome!

    If you are enjoying the experience, I would be very grateful if you could rate the theme on ThemeForest. This really creates a big difference, especially for a fresh product.

    #2101

    meli
    Participant

    Done!

    #2102

    Paul
    Keymaster

    Thanks, Meli!

    This really means a lot to me.
    And thank you for having put trust in the product as the first buyer!

    Kind Regards,
    Paul

    #2390

    meli
    Participant

    Hi Paul, we have re-launched our website at the beginning of the week, all is going fine and we are now having a great feedback / http://www.henka.es
    We are now planning to buy another license of Stills and work on our crafts website.

    Thank you again for your work.
    Kind regards,
    Meli

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

You must be logged in to reply to this topic.