Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: View the shortcodes from a page #1121701

    Thanks a lot Jordan. You are the man!!!

    in reply to: Template-builder & Bedrock not working together #1117058

    Hi Günter,

    Thanks a lot. It worked smoothly.

    I’ll put the code below for future reference:

    
    // functions.php
    
    /**
     * Allows to alter $data content like:
     * 	- path
     * 	- url
     *
     * @since 4.5.6
     * @param array $data
     * @param int $enqueued_to_do_index		$enqueued->to_do index
     * @param string $file_type				'js' | 'css'
     * @param string $file_group_name		'avia-head-scripts' | 'avia-footer-scripts' | 'avia-merged-styles'
     * @param WP_Scripts $enqueued
     * @param array $conditions
     */
    function custom_asset_mgr_get_file_data( array $data, $enqueued_to_do_index, $file_type, $file_group_name, WP_Scripts $enqueued, array $conditions )
    {
    	
    	/**
    	 * This is only an example how to alter the path to a file.
    	 * Make sure to add the correct path otherwise merging will fail
    	 */
    	$file = $enqueued->to_do[ $enqueued_to_do_index ];
    	$key = $file . '-' . $file_type;
    	
    	if( 'avia-compat-js' == $key )
    	{
    		$new_path = str_replace(HOME_URL, '', $data['remove'][ $key ]['path']);	// enter your changed path here  !!!!
    		$data['remove'][ $key ]['path'] = $new_path;
    	}
    	
    	/**
    	 * ******************   End of example   ***********************
    	 */
    	return $data;
    }
    						
    add_filter( 'avf_asset_mgr_get_file_data', 'custom_asset_mgr_get_file_data', 10, 6 );
    
    in reply to: Template-builder & Bedrock not working together #1116685

    Hi Günter,

    Can you post an example please? I think that it can be useful for other people that are using this wonderful theme with bedrock.

    Thanks a lot,

    Kan

    in reply to: Template-builder & Bedrock not working together #1116523

    Hi Günter,

    First of all, thanks for your response.

    And just one question, how I use this filter? Do I need to change it on my functions.php (in the child theme)? Or I need to change in the asset-manager.class.php file directly?

    Tks.

    in reply to: Template-builder & Bedrock not working together #1115615

    Just an update.

    It occurs with the main theme too.

    in reply to: Template-builder & Bedrock not working together #1115614

    Hi Guys,

    I’ve bought the Enfold theme (4.5.7) today. And if I use the theme child (with Bedrock too) the errors (reported above) appear. Can you fix that? I need to use the theme child for customize some things.

    Tks a lot.

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