Post Categories Tabs Widget Customization

Home Forums Gillion Theme Post Categories Tabs Widget Customization

Home Forums Gillion Theme Post Categories Tabs Widget Customization

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    RESOLVED Posts
  • Neroblock
    Participant

    Hello

    In my child theme I have made a small customization in your post categories tabs widget (option to add link in widget title). Now I would like the widget to autoplay and have inifinite scroll.

    I have found in your scripts.js the appropriate part (lines 1006-1022) where the changes I mentioned earlier need to be made, but I can’t figure out how to apply them to my child theme.

    Any info/guide/hint on the matter is more than welcome since I want to make same adjustments to other elements.

    Thank you for your time.

    Regards,
    Alexander

    Hi Alexander,

     

    Thank you for your question.

     

    You have to dequeue the scripts.js file from the theme and enqueue the modified file from your child theme.

     

    Best regards,
    Shufflehound team

    Neroblock
    Participant

    Solution for this topic

    Hello

    I am placing the function below in my functions.php file of the child theme, but the file still loads. What might be the problem?

    function dequeue_parent_scripts() {
    wp_dequeue_script( ‘scripts’ );
    wp_deregister_script( ‘scripts’ );
    }
    add_action( ‘wp_enqueue_scripts’, ‘dequeue_parent_scripts’, 100 );

    Thank you for your time.

    Regards,

    Alexander

    Solution for this topic

    The script handle is ‘gillion-scripts’ and not ‘scripts’ so please change it accordingly.

    Neroblock
    Participant

    Solution for this topic

    Hello

    thank you for the clarification. My bad on this one.

    Although, it also removes the gillion_loadmore_posts which breaks some parts. Copying it inside header.php after the wp_head part seems to do the trick. But is it a safe solution?

    Thank you for your time.

    Regards,

    Alexander

    Yes, it seems a safe solution so use it until you don’t face any issue with it.

    Neroblock
    Participant

    Hello

    ok.

    Than you for your time.

    Regards,

    Alexander

    You are most welcome here 🙂

Viewing 8 posts - 1 through 8 (of 8 total)