-
AuthorPosts
-
March 4, 2016 at 1:12 pm #593245
Hi,
I think I am missing something very basic here:
I have created and activated a child theme like described in the video http://kriesi.at/documentation/enfold/using-a-child-theme/ and it has no effect, for example
– pause on hover over slider using hoverpause: true, in shortcode.js works only with the file in the enfold folder, not the enfold-child folder
– style.css file in the child theme does not work with the code I cut and paste from quick CSS
Thanks for your help
MichaelMarch 4, 2016 at 5:33 pm #593394Hey mleonhard!
Please add following code to Functions.php file of your child theme
function wp_change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/shortcode.js', array('jquery'), 2, true ); } add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
and move modified file inside /js folder
Best regards,
YigitMarch 4, 2016 at 5:53 pm #593417Hi Yigit,
Thanks for your quick response.
Ok, I did that, but it makes no difference. Only the CSS in quick CSS and the modified shortcode.js in the enfold folder have an effect.
MichaelMarch 5, 2016 at 6:44 am #593656Hi!
Is possible something is corrupt please backup theme options settings from import/export options and deactivate the current child theme. Activate the main Enfold theme and download a fresh copy of the child theme from our site http://kriesi.at/documentation/enfold/using-a-child-theme/ and set it up please.
Best regards,
Vinay KashyapMarch 5, 2016 at 2:09 pm #593730Hi Vinay
Ok, I have changed back to Enfold, uninstalled the child theme and reinstalled with the download child.
Then updated style.css with my custom CSS. It all makes no difference. CSS only works if in the quick CSS section.
Only shortcodes.js in the Enfold folder has an effect, not in the child folder.
Have you had a look at my style.css? perhaps there is an error there?I mean, it all works well as it is, but I have read so many recommendations for using a child theme that thought to try it.
Thanks
MichaelMarch 6, 2016 at 5:32 pm #593953Hello,
I’m not sure, if the child theme you offer here http://kriesi.at/documentation/enfold/using-a-child-theme/ is correct. If I download this, the functions.php contains only:<?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. */
and the style.css only:
/* Theme Name: Enfold Child Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold WordPress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then. Version: 1.0 Author: Kriesi Author URI: http://kriesi.at Template: enfold */ /*Add your own styles here:*/
In my opinion, there is something wrong. Downloaded the enfold-child.zip several times in the last weeks, always the same.
Do we have to add the code Yigit wrote above all the times we set up a child theme?
Can you please explain, what’s the right way?
Thanks!
ClaudiaMarch 7, 2016 at 12:02 pm #594233Hi!
The child theme should work out of the box we would like to take a closer look but the login credentials you’ve provided do not work please send us working login credentials with user role as ‘administrator’ and permission to disable all plugins and add css if necessary to resolve the issue along with FTP details.
Best regards,
Vinay KashyapMarch 7, 2016 at 12:30 pm #594247Hi,
thanks, here is the login data, it should workMarch 7, 2016 at 2:16 pm #594308Hello,
I don’t want to occupy this thread. I can open a new one if you want.
My Question is only:
Is it correct, that in the function.php on http://kriesi.at/documentation/enfold/using-a-child-theme/ is no code and we have to add the code Yigit wrote above all the times we set up a child theme?
Claudia
March 7, 2016 at 6:07 pm #594498Hey!
We are working on your ticket please wait while we update the results here soon.You don’t need to add any code in child theme for it to work only in special cases you need to add a function’s code.
The code Yigit gave is to connect the shortcode.js with child theme but there was some plugin which was not allowing the child theme to work properly. We uploaded a new Child theme that did not make any effect but after disabling the plugins the child theme works fine…For testing purpose we added this code in child theme styles.css via appearance > editor > styles.css
#top .main_color input[type="text"], #top .main_color input[type="password"], #top .main_color textarea { background-color: #FFEB3B!important; }
The above code will change the contact form input field to gold color.
To find the plugin in conflict please follow the below steps
1. Goto plugins page > Deactivate all active Plugins
2. Updated WordPress and Enfold to latest version if you have not.
3. Activate one plugin at a time… refresh the page and check for the issue.
4. Make sure the plugins are all updatedRegards,
Vinay Kashyap- This reply was modified 8 years, 8 months ago by Vinay.
March 7, 2016 at 11:27 pm #594660Hi,
Thanks for your help. For the time being I have deactivated the child theme to return to a
fully functional site. I shall try your procedure when I find the time to do this
Regards
MichaelMarch 8, 2016 at 3:07 am #594723Hi!
Glad we could help you with this. Please check it out when you have time and let us know if you have any questions.
Thank you for using Enfold :)
Regards,
Vinay Kashyap -
AuthorPosts
- You must be logged in to reply to this topic.