slacatw
Forum Replies Created
-
Sadly it doesn’t work with the provided code if a filter is added (presumably)
Its throwing php code warnings on the admin dashboard and on the homepage its even duplicating the “home” icon without function whatsoever.Here is the code in use with the applied filter inside functions.php from the child-theme in use:
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): function chld_thm_cfg_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); if ( !function_exists( 'child_theme_configurator_css' ) ): function child_theme_configurator_css() { wp_enqueue_style( 'chld_thm_cfg_child', trailingslashit( get_stylesheet_directory_uri() ) . 'style.css', array( 'hello-elementor','hello-elementor','hello-elementor-theme-style','hello-elementor-header-footer' ) ); } endif; add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 10 ); add_filter( 'rank_math/frontend/breadcrumb/html', function( $html, $crumbs, $class ) { $html = str_replace( 'Home', '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-house-fill" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> </svg>', $html ); return $html; }, 10, 3); if ( function_exists('rank_math_the_breadcrumbs') && !is_front_page() ) { rank_math_the_breadcrumbs(); } // END ENQUEUE PARENT ACTIONHello,
We have already tried this option, but it did not work.
Furthermore, we could pinpoint the issue to an outdated WP (6.1.5) but due to certain circumstances, we are needed though to maintain the old version.
So we did try the plugin on another, recent project with the latest WP Version, and that worked out as intended.
Still, thank you for your assist on this matter.
The post can be closed now.Unfortunately, we don’t see any sort of a contact form besides the HappyBot because we dont have any paid upgrades available (Jetpack email support is open for customers with paid upgrades).