Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1488344

    Hey guys,

    Need a little help using a custom SVG divider. I’ve followed (I think) the Enfold documentation, and added a folder in the uploads directory called “avia_custom_shapes” and uploaded my SVG there (link in private field).

    Then I’ve added this code from your docs to the functions.php file to register it (only talking about the first one, the second one is the example from your docs which of course won’t work) – which it does, I can select it in the ALB, but no SVG gets displayed either in the preview or on the front end.

    function custom_avf_custom_svg_shapes( array $custom_shapes )
    {
    	$custom_shapes = array(
    				
    		'Mountain-Test-v2'	=> array(
    						'key'			=> 'Mountain-Test-v2',
    						'title'			=> __( 'CMC Mountains v1', 'avia_framework' ),
    //						'has_flip'		=> true,
    						'has_width'		=> true,
    						'filename'		=> 'Mountain-Test-v2'
    									),
    		'waves-in-motion'	=> array(
    						'key'			=> 'waves-in-motion',
    						'title'			=> __( 'Waves in motion', 'avia_framework' ),
    //						'has_flip'		=> true,
    						'has_width'		=> true,
    						'filename'		=> 'waves-in-motion'
    									)
    		
    						);
    	
    	return $custom_shapes;
    }
    
    add_filter( 'avf_custom_svg_shapes', 'custom_avf_custom_svg_shapes', 10, 1 );

    Not sure what I’m doing wrong, but looking forward to your help.

    Thanks

    Tim

    • This topic was modified 2 days, 11 hours ago by THP Studio.
    • This topic was modified 2 days, 11 hours ago by THP Studio.
    • This topic was modified 2 days, 11 hours ago by THP Studio.
    #1488348

    why do you think that there is something wrong?
    is on your dropdown list no custom svg ?

    #1488439

    Hi,

    Thanks for helping out @guenni007. Did that answer your question @THP Studio?

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.