Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Uplift › own svg icons
New Landing › How can we help? › Themeforest Theme Support › Uplift › own svg icons
- This topic has 17 replies, 3 voices, and was last updated 7 years by Swift Ideas – Ed.
-
Posted in: Uplift
-
June 1, 2017 at 2:57 pm #326710
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
June 5, 2017 at 2:19 pm #326926Please 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/
June 6, 2017 at 12:35 pm #327154Hi, 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' );
June 7, 2017 at 2:05 pm #327419June 7, 2017 at 2:29 pm #327427Hi, 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…
June 7, 2017 at 2:34 pm #327429Please add FTP details and a WP login.
June 7, 2017 at 2:36 pm #327430This reply has been marked as private.June 8, 2017 at 7:05 pm #327738Thanks,
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
June 12, 2017 at 6:18 pm #328209Hi, Thank you for your help. (I updated all core settings)
It works now for the for the ICON BOXBut 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
June 14, 2017 at 4:25 pm #328800Are you running the latest SF plugin and Uplift theme version?
The supplied login details are not working, can you check those and update?
June 15, 2017 at 8:29 am #328901yes, 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…
regardsJune 19, 2017 at 10:31 am #329178This reply has been marked as private.June 19, 2017 at 10:36 am #329182This reply has been marked as private.June 20, 2017 at 11:06 am #329385For this to work you must update the parent theme, we have tested this locally on our dev environments and experience no issue.
June 20, 2017 at 1:01 pm #329416Hi, 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? -
Posted in: Uplift
You must be logged in and have valid license to reply to this topic.