Digital experiences for all disciplines
Forum Replies Created
-
-
David – thanks so much for catching this. Is there a slick css remedy for this? I’m investigating as well. Technically, these pages aren’t assigned to a parent > child relationship. It’s odd that a custom child link only established for one menu item would affect menu items outside of (and at a higher level than) an individual menu / dropdown item. I think that more universal menu behavior would be indicative of an actual assigned parent > child relationship. Not merely a custom link in a separate dropdown menu. Thoughts? -Paul
This reply has been marked as private.Ed – Works for me! Thanks for getting this handled. -Paul
Rui – apologies on my delayed response. That’s a live client site so I am unable to turn off plugins. We do however have a preview site page here: http://bit.ly/2g9EZzr which has the same issue. However, even after turning off plugins on this nearly identical preview site, the issue remains. Thoughts? Thanks again in advance.
David – thanks for keeping this going. It’s much appreciated. Keep us posted. -Paul
This reply has been marked as private.Thanks for the follow through. Forgot to mark this as resolved.
This reply has been marked as private.David – I just added the following line:
if ( !$svg_icons ) { $svg_icons = array(); }
Unfortunately I still get the word “Array” in the svg icon list.
Here’s my entire function:
/* ADD PAGE BUILDER SVG ICONS ================================================== */ if ( !function_exists( 'spb_child_theme_svg_icons' ) ) { function spb_child_theme_svg_icons( $svg_icons ) { if ( !$svg_icons ) { $svg_icons = array(); } // Check if we can access files if ( !function_exists('glob') ) { return $svg_icons; } // Path to directory to scan $folder = '/swift-builder-icons/svg/'; $directory = get_stylesheet_directory() . $folder; $uri = get_stylesheet_directory_uri() . $folder; // Get all svg files $svgs = glob($directory . "*.svg"); // If no files, return if ( empty($svgs) ) { return; } // Add each icon to array foreach($svgs as $svg) { $svg = basename($svg); $key = $uri . $svg; if ( !array_key_exists( $key, $svg_icons ) ) { $svg_icons[ $key ] = $svg; } } // Return array return $svg_icons; } add_filter( 'spb_svg_icons_list', 'spb_child_theme_svg_icons' ); }
Thoughts?
Ed – Thanks for the swift response. Unfortunately, now the word “Array” appears in the svg list. Thoughts?
Ed – I’m attempting to implement this code as a fallback for the other method (discussed here: http://www.swiftideas.com/forums/topic/additional-nucleo-icons/#post-301515) which isn’t yet working either. With your code as-is, I was able to get the icons to appear (as outlined down arrows) in the svg list. However, the icons did not appear on the front end. There is just an empty space.
Update: I noticed your code utilized spb_outline_svg_icons, but i’m adding colored icons, so I swapped that bit with spb_coloured_svg_icons – which isn’t adding anything to the icon list. Thoughts?
Specifically, I’m trying to find the new icons within the Icon Box svg listing. Is there a different way I’m supposed to add these to content? Or should they appear in this and other pre-created svg lists for Swift Builder Elements?
I’m not able to get this to work. I thought it was, but it was actually the fact that I had some duplicate svgs that were also already in the theme. Thoughts?
I meant is there a class already associated with the Theme Customizations settings? I know I can make any class selector I want. But it isn’t clear what the Body Alt color is used for. So my hope was that there is a class already built into the theme to use these settings. Is that the case?
I would love to be able to do this as well. Any progress on this?
-
Posted in: Reply To: Additional Nucleo Icons