• Resolved AZBros

    (@azbros)


    I have a 3 column set-up for my Footer widgets. In the columns I have the Hueman Dynamic tabs set, but I only show one tab in each (Most Popular, Recent Posts and Recent Comments).

    I noticed the other day that the date format within these widgets is different than what I have set elsewhere. My standard date format is “F j, Y”. I found the alx-posts.php file and changed the date format, but that didn’t change anything. Elsewhere on my site, when I changed the date format to “F j, Y”, it changed accordingly.

    Is there something else I need to do to get this to work for the footer widgets? I came across some older posts discussing this, but I wasn’t able to figure out a solution from them. I’m wondering if the solutions are dated. Any help with this would be appreciated, but I can live with the current format if necessary. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi AZBros.

    In the columns I have the Hueman Dynamic tabs set,

    I found the alx-posts.php file and changed the date format, but that didn’t change anything.

    Wouldn’t you need to change the date format in alx-tabs.php instead of alx-posts.php?

    Thread Starter AZBros

    (@azbros)

    I actually changed it in both files (in my child theme, of course). Nothing happened.

    Out of curiosity, I just now made the change in the parent theme’s alx-tabs.php to see what would happen. It worked. I reverted the changes afterwards. I then copied only the alx-tabs.php file back into functions/widgets in my child theme. Changed the date format, but nothing happened. Why would this be?

    The widgets are loaded in function hu_load() in /functions/init-core.php. Copy that function to your child theme and change the load_template statement for alx-tabs to point to your child theme like this:

    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 AZBros

    (@azbros)

    Okay, it looks like it’s finally working. Initially I thought I needed to copy the init-core.php file to my child theme. I tried that, but it didn’t work. I then re-read your message and thought maybe I needed to paste the code into functions.php. That did the trick. Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Date Format in ALX Dynamic Tabs (Footer)’ is closed to new replies.