Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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
    Michael

    #593394

    Hey 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,
    Yigit

    #593417

    Hi 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.
    Michael

    #593656

    Hi!

    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 Kashyap

    #593730

    Hi 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
    Michael

    #593953

    Hello,
    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!
    Claudia

    #594233

    Hi!

    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 Kashyap

    #594247

    Hi,
    thanks, here is the login data, it should work

    #594308

    Hello,

    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

    #594498

    Hey!

    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 updated

    Regards,
    Vinay Kashyap

    • This reply was modified 8 years, 8 months ago by Vinay.
    #594660

    Hi,
    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
    Michael

    #594723

    Hi!

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.