- This topic has 9 replies, 2 voices, and was last updated 9 years, 4 months ago by Theme Horse Support Team.
-
AuthorPosts
-
July 11, 2015 at 5:49 am #26329chantal.attiaParticipant
Hello,
I change the layout width as follow :
.wrapper {
max-width: 1220px;
margin: 0 auto;
background-color: #fff;
-webkit-box-shadow: 0 0 5px #ddd;
-moz-box-shadow: 0 0 5px #ddd;
box-shadow: 0 0 5px #ddd;
}
.container {
margin: 0 auto;
max-width: 1073px;
/* width: 88%; */
}But the now the image of the slider don’t fill all the container.
I think there is something to change in : attitude-slider-setting.js meaby in the line :
containerResize: 0, // resize container to fit largest slideI tried to put a 1 or 100% instead 0 but it doesn’t work.
Could you tell me what I need to change ?
Thank you !
July 13, 2015 at 5:02 am #26359Theme Horse Support TeamKeymasterHi chantal.attia,
Could you provide your site Url too? Do you mean to change the slider image size? Which layout are you using? Narrow layout or wide Layout?
This is the below slider image size.add_image_size( 'slider-narrow', 1038, 460, true ); // used on Featured Slider on Homepage Header for narrow layout add_image_size( 'slider-wide', 1400, 460, true ); // used on Featured Slider on Homepage Header for wide layout
If you want to change it then go to theme folder -> functions.php on line no 143 and 144 and you may change the slider size. After changing the slider size then you need to install regenerate thumbnails to re generate the image size.
https://wordpress.org/plugins/regenerate-thumbnails/But we recommended you to create a child theme and then only customize the code so that while updating to new version your customized code will be lost and you need to do the same things again. If you are unable to fix it then you need to hire a developer to fix it.
Thank you!
July 13, 2015 at 6:53 am #26373chantal.attiaParticipantHello,
I don’t use neither the narrow nor the wide, change the layout in the child theme css for my “personnal” layout. I thought the “image” will automatically follow (as it automatically follow for the responsive) !
Sorry the adress is : http://www.guerisonspirituelle.com
Thank you
July 13, 2015 at 9:44 am #26378Theme Horse Support TeamKeymasterhi chantal.attia,
Yes you are using the narrow layout. Its the default layout of the theme. Go to theme folder -> functions.php on line no 143 and you will find this code.
add_image_size( 'slider-narrow', 1038, 460, true );
Replace this code with larger size you want.
add_image_size( 'slider-narrow', 1220, 460, true ); // where 1220 is width and 460 is height of slider
Then install regenerate thumbnails plugins in your dashboard. https://wordpress.org/plugins/regenerate-thumbnails/
Then now your image will show in 1220 and 460
But 1 thing remember while updating to new version your need to change the same code again. Because all your customized code will be lost while updating to new version. So better make child theme and then customize the code.
Thank you!
July 13, 2015 at 11:25 am #26381chantal.attiaParticipantoh ! I make a big mistake ! 🙁
First I change the functions_php here :
/www/wp-content/themes/attitude/library/functions/
(I kept a copy of the natif functions.php there)
Is it normal that I see a file name : i18n.php ?But without paying attention I delete the functions.php, without having a copy, in the file :
www/wp-content/themes/attitude/
Now of course my site has disappeared !
July 13, 2015 at 11:39 am #26382chantal.attiaParticipantI fix the problem in installing Attitude on my PC and upload the functions.php file at the right place
I find the line 143 and make the change but I lost of the style.
I think I have a problem with the folder
Here the functions.php I have in /www/wp-content/themes/attitude/library/functions/
<NotepadPlus>
<Session activeView=”0″>
<mainView activeIndex=”4″>
<File firstVisibleLine=”9″ xOffset=”0″ scrollWidth=”840″ startPos=”1268″ endPos=”1268″ selMode=”0″ lang=”PHP” encoding=”-1″ filename=”C:\Users\Chantal\Documents\MON SITE GUERISON\wordpress\wp-config-sample.php” backupFilePath=”” originalFileLastModifTimestamp=”1436378378″ />
<File firstVisibleLine=”0″ xOffset=”0″ scrollWidth=”720″ startPos=”0″ endPos=”0″ selMode=”0″ lang=”PHP” encoding=”-1″ filename=”C:\Users\Chantal\Documents\MON SITE GUERISON\wordpress\wp-config.php” backupFilePath=”” originalFileLastModifTimestamp=”1435869540″ />
<File firstVisibleLine=”23″ xOffset=”0″ scrollWidth=”936″ startPos=”1947″ endPos=”1947″ selMode=”0″ lang=”Normal Texte” encoding=”-1″ filename=”C:\Users\Chantal\Desktop\.htaccess” backupFilePath=”” originalFileLastModifTimestamp=”1436400784″ />
<File firstVisibleLine=”117″ xOffset=”0″ scrollWidth=”1016″ startPos=”6228″ endPos=”6228″ selMode=”0″ lang=”PHP” encoding=”-1″ filename=”C:\Users\Chantal\Desktop\Nouveau site Guérison – Attitude\Codes Attitude\functions-avec-amelioration-vitesse-contact-form-7.php” backupFilePath=”C:\Users\Chantal\AppData\Roaming\Notepad++\backup\functions-avec-amelioration-vitesse-contact-form-7.php@2015-07-13_131025″ originalFileLastModifTimestamp=”1436593180″ />
</mainView>
<subView activeIndex=”0″ />
</Session>
</NotepadPlus>!
I think I mix everything and now I am lost !Thank you.
July 13, 2015 at 11:59 am #26384chantal.attiaParticipantSorry for the number of posts, I fix the problem from Attitude downloaded on my PC uploading the 2nd functions.php file in themes/attitude/library/functions/
So finally (ouf ! 😉 ) I change the width and installed the plugin but it doesn’t change the situation.
Thank you
July 14, 2015 at 5:04 am #26406Theme Horse Support TeamKeymasterHi chantal.attia,
After installing the plugins you just regenerate the thumbnail. View this below screenshot.
http://awesomescreenshot.com/0dc52b2347Thank you!
July 14, 2015 at 9:25 am #26410chantal.attiaParticipantHello,
After all the “soup” I made, it works perfect !
Thank you five stars * * * * * team !
July 15, 2015 at 5:35 am #26428Theme Horse Support TeamKeymasterYou welcome chantal.attia
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.