Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gambitredux

    (@gambitredux)

    Hi, just wondering if you had a moment to look at my followup reply? Thanks!

    Thread Starter gambitredux

    (@gambitredux)

    Amazing, thanks for the quick reply!

    I’ve implemented that in a Filter, but for some reason some of the options are not working ($chart_args['options']['scales']['y']['grid']['drawBorder']). Any ideas?

    Full code:

    function filter_m_chart_chart_args( $chart_args, $post, $post_meta, $args ) {
    	
    	
    	if ( $post->ID != 872 ) {
    	
    	// X-Axis Label
    	$chart_args['options']['scales']['x']['title']['font']['family'] = "'trade-gothic-next-condensed', Sans-serif";
        $chart_args['options']['scales']['x']['title']['font']['size'] = 21;
    	$chart_args['options']['scales']['x']['title']['color'] = '#062F35';
    	$chart_args['options']['scales']['x']['title']['padding']['bottom'] = 10;
    	
    	// X-Axis Label
    	$chart_args['options']['scales']['x']['ticks']['font']['family'] = "'trade-gothic-next-condensed', Sans-serif";
        $chart_args['options']['scales']['x']['ticks']['font']['size'] = 14;
    	$chart_args['options']['scales']['x']['ticks']['color'] = '#062F35';
    	$chart_args['options']['scales']['x']['ticks']['padding'] = 10;
    	
    	$chart_args['options']['scales']['x']['grid']['drawBorder'] = false;
    	$chart_args['options']['scales']['x']['grid']['drawOnChartArea'] = false;
    	
    	// Y-Axis Label
    	$chart_args['options']['scales']['y']['title']['font']['family'] = "'trade-gothic-next-condensed', Sans-serif";
        $chart_args['options']['scales']['y']['title']['font']['size'] = 21;
    	$chart_args['options']['scales']['y']['title']['color'] = '#062F35';
    	$chart_args['options']['scales']['y']['title']['padding']['bottom'] = 10;
    	
    	// Y-Axis Ticks
    	$chart_args['options']['scales']['y']['ticks']['font']['family'] = "'trade-gothic-next-condensed', Sans-serif";
        $chart_args['options']['scales']['y']['ticks']['font']['size'] = 14;
    	$chart_args['options']['scales']['y']['ticks']['color'] = '#062F35';
    	$chart_args['options']['scales']['y']['ticks']['padding'] = 10;
    	
    	$chart_args['options']['scales']['y']['grid']['drawBorder'] = true;
    	
    	
    	return $chart_args;
    	}
    	else return $chart_args;
    }
    
    add_filter( 'm_chart_chart_args', 'filter_m_chart_chart_args', 10, 4 );
    • This reply was modified 2 years, 6 months ago by gambitredux.
    • This reply was modified 2 years, 6 months ago by gambitredux.
    Thread Starter gambitredux

    (@gambitredux)

    Not sure what it was, but I ended up migrating the site manually.

Viewing 3 replies - 1 through 3 (of 3 total)