Tagged: gallery
-
AuthorPosts
-
October 20, 2018 at 9:23 pm #1024405
Hello. On the test page https://trikego.com/it/00-gallery/ I’m using the gallery and in the theme options I set Lightbox Modal Window, but the arrows do not work to scroll through the images: open the lightbox, but without showing the arrows or the number corresponding to the image. Where am I wrong? I updated the theme to the latest version, but the problem remains. Perhaps it is better to eliminate Jetpack? Thanks a lot for your support. Best regards. Bruno
October 21, 2018 at 5:28 pm #1024532Hey Bruno,
I took a look at your page and found that your gallery is not opening in the lightbox, the images are opening directly.
I believe this is because your child theme has a old header.php file in it.
Please copy the new header.php to your child theme and add any customizations from the old header.php to it.Best regards,
MikeOctober 22, 2018 at 5:30 pm #1025005Sorry, I could ask you what exactly to do? First copy header.php, from the root copy it back into the child folder. But in this way I will lose the site settings? How can I keep the same style? I am not a Php expert.Thank you for your support. Best regards. Bruno
October 23, 2018 at 5:40 am #1025242Hi,
I took another look at your child theme and see that you don’t have a functions.php in it, so I have linked to one in the Private Content area and added your “google site verification” meta tag from your header in to it. This was the only customization that I could find in your header.php.
So with the “file manager” tool from your webhost, or with ftp, please add the functions.php I linked to, into your child theme, and then rename your header.php to “header.php.old”
This way you won’t be using this file, and the parent theme’s header.php will be used.Best regards,
MikeOctober 23, 2018 at 10:50 pm #1025669Hello Mike, thank you. I think I did as you advised, it seems right, would you be so kind to read below to confirm both the method you indicated? I do not know php:
1. I took from the folder of the last enfold update, the header.php file and copied it into the enfold-child folder.
2. After having copied the header.php file from the enfold folder to the enfold-child folder, I have inserted in it the php code you gave me. I inserted it in the final part and added the closing ?>
Please check final header.php in private content. Thanks a lot for your support. Best regards. Bruno
October 24, 2018 at 3:21 am #1025760Hi,
No this is not correct,
Sorry that I have caused any confusion, after you explained your skill level I wanted to make this easy for you.
So you don’t need to add the header.php to your child theme, it will not offer a benefit. Please just upload the functions.php file to your child theme that I linked to and leave it named functions.phpI added your customization to this file, and going forward you will not need a child theme header.php
Best regards,
MikeOctober 24, 2018 at 12:18 pm #1025867Hello Mike, thank you for your patience and kindness. I have disabled header.php inside the enfold-child folder and the image gallery still works. I looked for the file with your personalization, in the enfold folder, I searched inside:
functions-enfold.php
functions.php
header.phpbut I will not find your personalization. Would you be kind enough to let me know in which file I find your customization? Or, I still do not understand if I have to enter your personalization but I do not understand where. I’m sorry to waste you time for something obvious to you, bear with me, I would like to understand to avoid the mistake does not happen again next time the theme is updated.
Summarizing: the image gallery seems to work
>https://trikego.com/it/immagini-cargobike/
and since it seems to me to work, I guess you did customization for me, I would be able to save a copy of the file, I would like to understand what file it is and where it is or, if I have to do it, which file and where to place the your personalization. I hope I have explained myself and I still ask you patience. I’m sorry. Thanks a lot and best regards. Bruno
October 25, 2018 at 1:06 am #1026167Hi,
Typically in your child theme, the files that should be included are:
style.css
functions.php
screenshot.png
The style.css is for your custom css & functions.php is for you custom functions.
You can add other files if you are going to customize them, such as your header.php & footer.php
but once in a while the theme changes these core file so much that continue to use the old files causes issues, such as in your case, you were using files from v3.8.4 and we need to remove the header.php in your child theme.So I found your customization in your old header.php and rewrote it to work as a function, but I noticed that your child theme didn’t have a functions.php to put the code it, so I created you a new one and linked to it in the Private Content area. You will see that I linked to it again for you. :)
Please add this file to your child theme folder.
To be sure that I didn’t miss anything, I asked that you rename your header.php to headerold.php, if you have no issues in the future you can delete the headerold.php, maybe next week.So in the future, when you update the Enfold theme your customization will always be safety stored in your new functions.php in your child theme, and the next time we write some code for you, we will ask you to add it to your functions.php in your child theme. :)
I hope that I have explained this well, and please feel free to always ask any questions you would like. :)
Best regards,
MikeOctober 25, 2018 at 2:50 pm #1026362Many thanks Mike, thanks to your accurate information, I think I understand: I downloaded your functions.php and added the closing, right?
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function add_custom_meta(){
?>
<meta name=”google-site-verification” content=”7LpFH1J-aPDKgNxEgLwGuRCij-Cr_F9qzEGsd3lVzmQ” />
<?php
}
add_action(‘wp_head’, ‘add_custom_meta’);
?>is it right to have it in the end
?>
with FTP I sent the functions.php file inside the enfold-child folder. Confirm have understood? Anyway, I confirm thanks for your support and your patience. Thanks, Mike. Best regards. Bruno
October 25, 2018 at 6:14 pm #1026457Hi,
Normally in PHP you would add the closing to the file
?>but in this case you don’t because this is a special file and other PHP files are loaded after it, I removed the closing for you.
I’m glad we could help, unless there is anything else we can help with on this issue, shall we close this then?
Best regards,
MikeOctober 29, 2018 at 7:01 pm #1027710Hello Mike. Thanks a lot for your time and your explanations. Best regards. Bruno
October 30, 2018 at 3:53 am #1027825Hi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Issues with gallery module’ is closed to new replies.