Home Forums Pro Themes Education Hub Pro How to put the slider above menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7324
    rd16
    Participant

    Bought the pro version. Great theme!

    Need some help, though:

    1. How can I put the slider above the main menu and put the section with logo under the menu?

    2. Is it possible to move the action button on the slider to a specified position ?

    Thank you!

    #7419
    wensolutions
    Keymaster

    Hello @rd16

    Thanks for the appreciation for the theme.

    Query:

    1. How can I put the slider above the main menu and put the section with logo under the menu?

    Response:
    For the solution you need to create and activate child theme.
    Reference here for child theme. https://codex.wordpress.org/Child_Themes

    After successfully creating child theme, now in your functions.php file in child theme you need to copy and paste following code as a whole.

    <?php  
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        
    }
    function child_remove_parent_function() {
        
        remove_action( 'education_hub_action_after_header', 'education_hub_add_primary_navigation', 20 );
        remove_action( 'education_hub_action_before_content', 'education_hub_add_featured_slider', 5 );
    }
    add_action( 'wp_loaded', 'child_remove_parent_function' );
    
    add_action( 'education_hub_action_before_header', 'education_hub_add_primary_navigation', 7  );
    
    add_action( 'education_hub_action_before_header', 'education_hub_add_featured_slider', 6  );
    

    Hope this will solve your issue.
    If you have any confusion regarding this let me know.

    Best Regards!!!

    #7480
    rd16
    Participant

    Thank you for the information! Good service. Will try that.
    Best Regards!

    #7481
    wensolutions
    Keymaster

    Hello @rd16

    Thanks for your appreciation for the service.
    Let me know how it goes after you have tried the solution.
    And for the Query no.2

    Is it possible to move the action button on the slider to a specified position ?

    As much as I would love to help you with this but just saying action button on the slider confused me.
    Do you mean the caption section or the navigation??

    Regards!!!

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