• I searched and can’t find how to edit the date format in alx-posts.php properly. I tried the child theme technique and it didn’t work (created a alx-posts.php in functions/widgets folder). When I changed it in the file itself, it is the proper format (F j, Y). However, the entire month is being capitalized instead of just the first letter. There must be something in this widget that is forcing that because that isn’t my general settings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi DataSplit. The other piece you need is to load the alx-posts template from your child theme. The theme defaults to loading the template from the theme directory using the following function:

    function alx_load() {
    	// Load theme languages
    	load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
    
    	// Load theme options and meta boxes
    	load_template( get_template_directory() . '/functions/theme-options.php' );
    	load_template( get_template_directory() . '/functions/meta-boxes.php' );
    
    	// Load custom widgets
    	load_template( get_template_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 custom shortcodes
    	load_template( get_template_directory() . '/functions/shortcodes.php' );
    
    	// Load dynamic styles
    	load_template( get_template_directory() . '/functions/dynamic-styles.php' );
    
    	// Load TGM plugin activation
    	load_template( get_template_directory() . '/functions/class-tgm-plugin-activation.php' );
    }

    Copy that entire function to your child theme functions.php file, and change the alx-posts line as follows:

    load_template( get_stylesheet_directory() . '/functions/widgets/alx-posts.php' );

    That should fix it.

    Thread Starter DataSplit

    (@datasplit)

    This code breaks the site. Specifically, it does it at line 501. Looks like you are trying to load a file that I don’t have. What is with the shortcodes.php?

    My apologies. What I posted is the function from v2.2.2 on the theme website. If you’re using the version from the wp.org theme repository (currently v1.5.1) you would remove that line from the function.

    Thread Starter DataSplit

    (@datasplit)

    Why is the website 2.2.2 and the WordPress theme option 1.5.1? That seems like a pretty big gap.

    They share the same base code but the website version contains additional functionality. This is from the web site:

    Note: The version of Hueman available on www.remarpro.com is a “lite” version, and does not include sharing buttons, tracking code field, basic shortcodes and some other things as it is seen as plugin territory.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Alx-Posts.php Date Format’ is closed to new replies.