Viewing 15 posts - 1 through 15 (of 18 total)
  • Posted in: Uplift
  • #326710
    shopowner
    Member
    Post count: 23

    Hi,

    I would like to use my own svg icons.
    How can I add them to the icon box?

    I tried to add my .svg icon to the map: /wp-content/themes/uplift/images/svgs
    But i can’t find them in the front end page builder…

    How can i make them appear in the icon list in pagebuilder view?
    I suppose I have to index or point to them somewhere?

    Kind regards

    #326926
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, inside the child theme functions.php file you will find the code to do this. It will be commented out, so you will need to uncomment the PHP function to make it work.

    Look for the starting line:

    	/* ADD PAGE BUILDER SVG ICONS
    	================================================== */

    Create a folder within the child theme for the new SVG’s: /swift-builder-icons/svg/

    #327154
    shopowner
    Member
    Post count: 23

    Hi, my child theme functions.php does not have these starting line or content within the file…
    only this:

    <?php
    	
    	/*
    	*
    	*	Uplift Functions - Child Theme
    	*	------------------------------------------------
    	*	These functions will override the parent theme
    	*	functions. We have provided some examples below.
    	*
    	*
    	*/
    	
    	/* LOAD PARENT THEME STYLES
    	================================================== */
    	function uplift_child_enqueue_styles() {
    	    wp_enqueue_style( 'uplift-parent-style', get_template_directory_uri() . '/style.css' );
    	
    	}
    	add_action( 'wp_enqueue_scripts', 'uplift_child_enqueue_styles' );
    	
    	
    	/* LOAD THEME LANGUAGE
    	================================================== */
    	/*
    	*	You can uncomment the line below to include your own translations
    	*	into your child theme, simply create a "language" folder and add your po/mo files
    	*/
    	
    	// load_theme_textdomain('swiftframework', get_stylesheet_directory().'/language');
    	
    	
    	/* REMOVE PAGE BUILDER ASSETS
    	================================================== */
    	/*
    	*	You can uncomment the line below to remove selected assets from the page builder
    	*/
    	
    	// function spb_remove_assets( $pb_assets ) {
    	//     unset($pb_assets['parallax']);
    	//     return $pb_assets;
    	// }
    	// add_filter( 'spb_assets_filter', 'spb_remove_assets' );	
    
    	/* ADD/EDIT PAGE BUILDER TEMPLATES
    	================================================== */
    	function custom_prebuilt_templates($prebuilt_templates) {
    			
    		/*
    		*	You can uncomment the lines below to add custom templates
    		*/
    		// $prebuilt_templates["custom"] = array(
    		// 	'id' => "custom",
    		// 	'name' => 'Custom',
    		// 	'code' => 'your-code-here'
    		// );
    
    		/*
    		*	You can uncomment the lines below to remove default templates
    		*/
    		// unset($prebuilt_templates['home-1']);
    		// unset($prebuilt_templates['home-2']);
    
    		// return templates array
    	    return $prebuilt_templates;
    
    	}
    	//add_filter( 'spb_prebuilt_templates', 'custom_prebuilt_templates' );
    #327419
    David Martin – Support
    Moderator
    Post count: 20834
    #327427
    shopowner
    Member
    Post count: 23

    Hi, I added the code to the child theme functions.php and created swift-builder-icons & svg map in the child-theme folder. But it is not working. what can be the problem? FYI; I renamed the theme folders and names to cranium & cranium-child , but the child theme is working…

    #327429
    David Martin – Support
    Moderator
    Post count: 20834

    Please add FTP details and a WP login.

    #327430
    shopowner
    Member
    Post count: 23
    This reply has been marked as private.
    #327738
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks,

    1) Could you update Uplift to the latest version also: https://www.cranium.eu/cranium/wp-admin/update-core.php

    2) I have now updated the code on your site to: https://gist.github.com/webadelic/3ce66e88c07219f5b2f47b35149f0e73.

    3) Please name yoru SVG correctly:

    Wrong: Cranium icons1-01.svg

    Correct: cranium-icons1-01.svg

    #328209
    shopowner
    Member
    Post count: 23

    Hi, Thank you for your help. (I updated all core settings)
    It works now for the for the ICON BOX

    But when iI try to load them in the ‘ICON BOX GRID’ they don’t show up.
    I want to use the icon box grid… Can you fix that as well?

    Kind regards

    #328800
    David Martin – Support
    Moderator
    Post count: 20834

    Are you running the latest SF plugin and Uplift theme version?

    The supplied login details are not working, can you check those and update?

    #328901
    shopowner
    Member
    Post count: 23

    yes, i am running uplift theme Version: 1.3.60 & SF plugin Version 2.5.43
    But the icon grid box won’t work in the front-end…
    regards

    #329178
    David Martin – Support
    Moderator
    Post count: 20834
    This reply has been marked as private.
    #329182
    shopowner
    Member
    Post count: 23
    This reply has been marked as private.
    #329385
    David Martin – Support
    Moderator
    Post count: 20834

    For this to work you must update the parent theme, we have tested this locally on our dev environments and experience no issue.

    #329416
    shopowner
    Member
    Post count: 23

    Hi, I have updated to the last Version: 1.3.60…
    But it won’t work in icon grid box view …
    What can be the problem?

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register