• Resolved adieu

    (@adieu)


    I wanted to change the hover label on the dynamic tabs widget in the primary sidebar so the label changes from “recent posts to “destinations”.

    I created a alx-tabs.php file in my child theme.

    This is the contents:

    <?php
    /* Create tabs-nav
    /* ———————————— */
    private function _create_tabs($tabs,$count) {
    $titles = array(
    ‘recent’ => __(‘Destinations’,’hueman’),
    ‘popular’ => __(‘Popular Posts’,’hueman’),
    ‘comments’ => __(‘Recent Comments’,’hueman’),
    ‘tags’ => __(‘Tags’,’hueman’)
    );
    }
    ?>

    Have I made a mistake? I am at Salish Sea Pilot. Appreciate any help. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi adieu. You would need to copy the entire /functions/widgets/alx-tabs.php file to the same path in your child theme, then make the changes there.

    Thread Starter adieu

    (@adieu)

    Thanks for the help. I created the functions/widgets/alx-tabs.php path in the child theme, but it’s still not working.

    I have played with different various of what to include in the alx-tabs.php file, even the complete file, but no luck so far.

    Sorry, don’t change the widgets very often so forgot the loading piece. You need to copy the hu_load() function to your child theme functions.php file. Then change the line that loads alx-tabs to point to your child theme by changing this:

    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );

    to this:

    load_template( get_stylesheet_directory() . '/functions/widgets/alx-tabs.php' );
    function hu_load() {
        // Load theme languages
        load_theme_textdomain( 'hueman', get_stylesheet_directory().'/languages' );
    
        // Load theme options and meta boxes
        // load_template( get_template_directory() . '/functions/theme-options.php' );
        load_template( get_template_directory() . '/functions/init-meta-boxes.php' );
    
        // Load custom widgets
        load_template( get_stylesheet_directory() . '/functions/widgets/alx-tabs.php' );
        load_template( get_template_directory() . '/functions/widgets/alx-video.php' );
        load_template( get_template_directory() . '/functions/widgets/alx-posts.php' );
    
        // Load dynamic styles
        load_template( get_template_directory() . '/functions/dynamic-styles.php' );
      }

    Thread Starter adieu

    (@adieu)

    It works! I’m not sure how, but it does.

    Many thanks, bdbrown!

    You’re welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing the name of dynamic tabs’ is closed to new replies.