Custom templates - Custom image sizes

Stagger Lee
1796 Posts
Stagger Lee posted this 10 April 2015

Now when you added custom Page/Post/Archive templates (thank you for this, very unique), can you add for images in those templates to use custom image sizes (Wordpress).

Even beginners now can easy make own custom image sizes in Wordpress, there are plenty of simple plugins for that.

So for instance if our custom image size is named: thumbnail-footer or post-view-top-image to have one option in custom template, image settings, for this ?

Just make Themler scripts aware to change this:

  • theme_get_post_thumbnail(array('size' => 'full', 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-18'))

to this:

  • theme_get_post_thumbnail(array('size' => 'thumbnail-footer', 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-18'))

I know we can resize them via CSS options in Themler, but this is so outdated today and wrong.

It is very easy even for WP beginners. Those plugins are so easy to use for making custom image sizes and naming them as you need.

I agree it is easy even to change in Themler PHP code after. But as you see Themler scripts dont have to make complex PHP code calculations, just switch one word with other we put in some settings field for images.

Now when you added custom Page/Post/Archive templates (thank you for this, very unique), can you add for images in those templates to use custom image sizes (Wordpress). Even beginners now can easy make own custom image sizes in Wordpress, there are plenty of simple plugins for that. So for instance if our custom image size is named: **thumbnail-footer** or **post-view-top-image** to have one option in custom template, image settings, for this ? Just make Themler scripts aware to change this: - theme_get_post_thumbnail(array('size' => **'full'**, 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-18')) to this: - theme_get_post_thumbnail(array('size' => **'thumbnail-footer'**, 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-18')) I know we can resize them via CSS options in Themler, but this is so outdated today and wrong. It is very easy even for WP beginners. Those plugins are so easy to use for making custom image sizes and naming them as you need. I agree it is easy even to change in Themler PHP code after. But as you see Themler scripts dont have to make complex PHP code calculations, just switch one word with other we put in some settings field for images.
Vote to pay developers attention to this features or issue.
17 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 10 April 2015

Hello Lee,
we'll add this suggestion to our wish list.

If you're interested please vote for this feature.
We'll take into account each vote.

Regards,
Aileen

Hello Lee, we'll add this suggestion to our wish list. If you're interested please **vote for this feature**. We'll take into account each vote. Regards, Aileen
Stagger Lee
1796 Posts
Stagger Lee posted this 30 May 2015

Folks vote for it !!??
Your blog/archive lists pull original, full images from upload directory. Despite blocks/columns dont allow them to be seen as full size.

If you dont want slow website and images with 2600x1600 px and images up to 4-5 MB per blog item, then vote for it.

If archive list is 12-24 posts, 24 x say 2 MB per archive item = 48 MB for pageload, only on one archive page.

Vote, it is very important. I know how to change it in code, but still this option is needed. Regarding how Themler works and overwrite files on "Save".

Folks vote for it !!?? Your blog/archive lists pull original, full images from upload directory. Despite blocks/columns dont allow them to be seen as full size. If you dont want slow website and images with 2600x1600 px and images up to 4-5 MB per blog item, then vote for it. If archive list is 12-24 posts, 24 x say 2 MB per archive item = 48 MB for pageload, only on one archive page. Vote, it is very important. I know how to change it in code, but still this option is needed. Regarding how Themler works and overwrite files on "Save".
Stagger Lee
1796 Posts
Stagger Lee posted this 30 May 2015

I noticed Themler could solve it without giving Users this option.
If it can scan plugins, custom function, child theme filters for image sizes. And if it detect a size we put for images in pixel then use this size name.

  • We make custom image size of 210x150 px, named "basketball-archive-thumbnail".
  • Themler detect this custom image size fit to image size name in our Themler template.
  • Themler replace word "full" with "basketball-archive-thumbnail".

I noticed Themler could solve it without giving Users this option. If it can scan plugins, custom function, child theme filters for image sizes. And if it detect a size we put for images in pixel then use this size name. - We make custom image size of 210x150 px, named "basketball-archive-thumbnail". - Themler detect this custom image size fit to image size name in our Themler template. - Themler replace word "full" with "basketball-archive-thumbnail".
Stagger Lee
1796 Posts
Stagger Lee posted this 30 May 2015

I noticed Themler could solve it without giving Users this option.
If it can scan plugins, custom function, child theme filters for image sizes. And if it detect a size we put for images in pixel then use this size name.

  • We make custom image size of 210x150 px, named "basketball-archive-thumbnail".
  • Themler detect this custom image size fit to image size in our Themler template.
  • Themler replace word "full" with "basketball-archive-thumbnail".

I noticed Themler could solve it without giving Users this option. If it can scan plugins, custom function, child theme filters for image sizes. And if it detect a size we put for images in pixel then use this size name. - We make custom image size of 210x150 px, named "basketball-archive-thumbnail". - Themler detect this custom image size fit to image size in our Themler template. - Themler replace word "full" with "basketball-archive-thumbnail".
shaulhadar
403 Posts
shaulhadar posted this 30 May 2015

Voted by me, this is really important!

Good catch stagger!

Voted by me, this is really important! Good catch stagger!
Stagger Lee
1796 Posts
Stagger Lee posted this 31 May 2015

Theme could self generate custom image sizes. Many WP themes do it. Dont know why they dont do it. Only thing that remains is regenerating images by ourself. There are many plugins for that. One click actions.

But I see problem and why. When playing to much with Themler templates, changing image sizes, regenerating images, you end with lot of unused junk in uploads directory. That is why I think first option of detecting OUR custom sizes is better.

When image size in Themler is changed and theme saved old custom sizes are gone, and it is not possible anymore to delete them, or reuse them with different size. There are few plugins for that, but I would not advise using such risky plugins.

Theme could self generate custom image sizes. Many WP themes do it. Dont know why they dont do it. Only thing that remains is regenerating images by ourself. There are many plugins for that. One click actions. But I see problem and why. When playing to much with Themler templates, changing image sizes, regenerating images, you end with lot of unused junk in uploads directory. That is why I think first option of detecting OUR custom sizes is better. When image size in Themler is changed and theme saved old custom sizes are gone, and it is not possible anymore to delete them, or reuse them with different size. There are few plugins for that, but I would not advise using such risky plugins.

Last edited 31 May 2015 by Stagger Lee

Stagger Lee
1796 Posts
Stagger Lee posted this 13 June 2015

Please change word "full" to "thumbnail" for archive lists. You can do it for next update. There is no need to pull big images in blog/archive/category lists. All themes use "thumbnail", for a reason. It doesnt change.

Please change word "full" to "thumbnail" for archive lists. You can do it for next update. There is no need to pull big images in blog/archive/category lists. All themes use "thumbnail", for a reason. It doesnt change.
Stagger Lee
1796 Posts
Stagger Lee posted this 13 June 2015

It makes space for layout and design error when unexperienced Users do it, I know. Best would be as I adviced you, scan installation for custom image sizes, and if size fit in one pixel use this custom image size name.

If not match, use whatever User typed in image width/height fields, 100% width, 350px, etc....

It makes space for layout and design error when unexperienced Users do it, I know. Best would be as I adviced you, scan installation for custom image sizes, and if size fit in one pixel use this custom image size name. If not match, use whatever User typed in image width/height fields, 100% width, 350px, etc....
Stagger Lee
1796 Posts
Stagger Lee posted this 13 June 2015

This simple function is capable of detecting all image sizes on one installation, native and custom. Gives width and height too.

https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes

This simple function is capable of detecting all image sizes on one installation, native and custom. Gives width and height too. https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
Support Team
Support Team posted this 22 June 2015

Hello Stagger Lee,
just to let you know^ this suggestion was put on hold due to higher priority tasks.

Regards
Aileen

Hello Stagger Lee, just to let you know^ this suggestion was put on hold due to higher priority tasks. Regards Aileen
Stagger Lee
1796 Posts
Stagger Lee posted this 23 June 2015

Thanks Aileen.

Say to your developers, it doesnt need to be anything fancy. Just one text input field where we can type name of our custom image size. Some kind of "replace word" PHP function inside intern Themler working.

For those Users that dont know what custom image sizes are, and how to regenerate images, wont help anything you do in Themler. Lost time if you try to satisfy them.

Thanks Aileen. Say to your developers, it doesnt need to be anything fancy. Just one text input field where we can type name of our custom image size. Some kind of "replace word" PHP function inside intern Themler working. For those Users that dont know what custom image sizes are, and how to regenerate images, wont help anything you do in Themler. Lost time if you try to satisfy them.

Last edited 23 June 2015 by Stagger Lee

Support Team
Support Team posted this 23 June 2015

Hello Stagger Lee,
now the solution regarding this feature depends on user activity. It will be implemented if many users vote for it.

regards,
Aileen

Hello Stagger Lee, now the solution regarding this feature depends on user activity. It will be implemented if many users vote for it. regards, Aileen
Stagger Lee
1796 Posts
Stagger Lee posted this 24 June 2015

I make some screenshot just for people to visually get it. Theme is not Themler, but could easy be, point is the same.

I can easy change image size name in PHP files. But still would like this option because on "Save" it could be overwritten and I could be tricked it is not changed back to "full". Very difficult to see difference, specially when there are so much details to think about when developing one Themler theme.

Click on attachment link to be able to read text.

SO VOTE FOR IT !

http://attachments.answers.billiondigital.com/838/2838/2015-06-24-100326.jpg

I make some screenshot just for people to visually get it. Theme is not Themler, but could easy be, point is the same. I can easy change image size name in PHP files. But still would like this option because on "Save" it could be overwritten and I could be tricked it is not changed back to "full". Very difficult to see difference, specially when there are so much details to think about when developing one Themler theme. Click on attachment link to be able to read text. SO VOTE FOR IT ! ![http://attachments.answers.billiondigital.com/838/2838/2015-06-24-100326.jpg][1] [1]: http://attachments.answers.billiondigital.com/838/2838/2015-06-24-100326.jpg

Last edited 24 June 2015 by Stagger Lee

Stagger Lee
1796 Posts
Stagger Lee posted this 21 August 2015

This one is solved long time ago. In some way, very easy to use own image sizes. For beginners, install this plugin:

https://wordpress.org/plugins/simple-image-sizes/screenshots/
- Make own image size(s).
- Regenerate all images.
- Insert new CMS Code control beside your archive featured image.
- Insert inside this code, change name of your custom image size:

<?php echo theme_get_post_thumbnail(array('size' => 'thumbnail-my-custom-name', 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-13')); ?>
  • Delete original Themler featured image.
  • Go to the CMS Code settings for Images and give it width of 100%.

This one is solved long time ago. In some way, very easy to use own image sizes. For beginners, install this plugin: [https://wordpress.org/plugins/simple-image-sizes/screenshots/][1] [1]: https://wordpress.org/plugins/simple-image-sizes/screenshots/ - Make own image size(s). - Regenerate all images. - Insert new CMS Code control beside your archive featured image. - Insert inside this code, change name of your custom image size: <?php echo theme_get_post_thumbnail(array('size' => 'thumbnail-my-custom-name', 'imageClass' => ' bd-imagestyles', 'class' => ' bd-postimage-13')); ?> - Delete original Themler featured image. - Go to the CMS Code settings for Images and give it width of 100%.
Stagger Lee
1796 Posts
Stagger Lee posted this 21 August 2015

Perhaps not needed to advise but.

This way you can make custom templates for different categories/taxonomies and give them very different sized featured images. Something people using plugins for, that are very complex and complicated in code, and now unnecessary when Themler does it easy.

Perhaps not needed to advise but. This way you can make custom templates for different categories/taxonomies and give them very different sized featured images. Something people using plugins for, that are very complex and complicated in code, and now unnecessary when Themler does it easy.
Stagger Lee
1796 Posts
Stagger Lee posted this 19 September 2015

This one if fixed with latest update. No need for custom code anymore.

This one if fixed with latest update. No need for custom code anymore.
Stagger Lee
1796 Posts
Stagger Lee posted this 22 January 2016

Will just thank for this input field option and say this way you can make plenty of new options. It is not so big deal for developers because amount of code inserted in templates is almost the same and it already has its place in code.

One idea would be when making archive templates to have same option(s) for WP query arrays. So we can manually type name of category, post type, etc...Or another input field option for limiting excerpts length differently.

You can allways in case of wrong code revert code to default. But there is good old error forcing users to reload Themler page and it says to them they typed wrong code.

Developers dont need to bother with GUI of those options. They can hide them away somewhere as they are for advanced and seldom use.

Will just thank for this input field option and say this way you can make plenty of new options. It is not so big deal for developers because amount of code inserted in templates is almost the same and it already has its place in code. One idea would be when making archive templates to have same option(s) for WP query arrays. So we can manually type name of category, post type, etc...Or another input field option for limiting excerpts length differently. You can allways in case of wrong code revert code to default. But there is good old error forcing users to reload Themler page and it says to them they typed wrong code. Developers dont need to bother with GUI of those options. They can hide them away somewhere as they are for advanced and seldom use.

Last edited 22 January 2016 by Stagger Lee

You must log in or register to leave comments