September 27, 201214 yr Dear all, I have question for you. I'm novice in this field and I need help. our website is http://www.binemikom.rs in filed "products" (you can chose ENG version because site is in Serbian), on the left side there are thumbnails and images (company logos). Size of the thumbnail should be 220x100, but when I change that than images on other page (for instance in list of products if you go to "Vogel pumpen") in thumbnails on the right side (product thumbnails) get mess up, and vice versa. So I have to keep thumbnail size same on both pages, but I would like sizes on the product page to be bigger than now. Could you help me with this? BR
September 27, 201214 yr What you're saying is you want different sized thumbnails for different places? If so you need to add a image size to your themes functions.php file and call it where you want it in the template. Find the functions file and add a new image size. An example i'm working on currently is as follows... add_image_size( 'post-thumb', 300, 200, true ); add_image_size( 'header-thumb', 500, 350, true ); As you can see above, i have two sizes of thumbs which are considerably different in size as they are used for different things completely. One is to go along side posts on the index page and the other as a featured post section. In the template for the index page i call... <?php if ( has_post_thumbnail() ) the_post_thumbnail('post-thumb'); ?> and on the featured section i call... <?php if ( has_post_thumbnail() ) the_post_thumbnail('header-thumb'); ?>
September 28, 201214 yr Author Mike, thank you for answer. This is not my field and I'm doing this just to correct things, since some companies that we hired to do this kind of job turned out to be quit unprofessional:( and they left job unfinished. So, I need to make corrections asap and make everybody happy - read managament I'll try to change this, if I fail I will be free to ask you for more support BR
September 28, 201214 yr Author Mike, I found funcions file, but when I click on it, what I get is: <?php /** * This file is part of the Dottoro Studio Theme. * http://themedemos.dottoro.com * * Please do not modify this file. * Any customizations you have made will be lost when you update the theme. * To avoid this, please consider using child themes for modifications. * * @package Dottoro Studio */ require_once ('lib/init.php'); Don't understand
September 28, 201214 yr Looks like the company used a commercial theme. Did you ask them to create you a custom job or did you know they where using the theme? You'll have to look through the 'lib' folder for the 'init.php' file and see if the required changes can be made in there.
September 28, 201214 yr The theme you're using makes use of WordPress' update mechanism, which means any customizations you make to the theme's files will be overwritten when it updates. You need to create a Child Theme and customize that.
September 28, 201214 yr Author Thanks guys, as I can see this is job for proffesionals, I already did a lot changes in the theme, learning ower the web and experimenting, but this seems lot complecated, especialy if you considere that ENG is not my native lang. and that I have no experience with PHP, it would take me lot of time that I do not have. Thank you for help, I will have to ask someone to do it. Unfortunately there are no paypal here in Serbia yet, it would be easier to make a deal with some of you guys and get job finished. BR
Create an account or sign in to comment