Upgraded to WordPress 6.0 and have issues? Please check the hotfix which you need to apply.

Okay
  Public Ticket #2453728
How to remove 'redux-google-fonts-' from theme plugin
Closed

Comments

  • MileMijatovic started the conversation

    Hello, 

    please tell me how can I remove 'redux-google-font-' from <head>...</head>, from Housico option plugin? I don't need google fonts two times in my theme , I define in header.php in child theme, font.googleapis for Rubik font 300 400 500, and don't need another styles .

  •  101
    FlexiPress replied

    Hello,

    You can delete Google Fonts from actions.php file located at wp-content/themes/housico/includes. There is a function named housico_fonts() which allows the use of Google Fonts and in order to dequeue that you just need to comment line 11 of that file:

    add_action('init', array($this, 'housico_fonts'));

    Kind regards,


    FlexiPress Support

    Follow on     Envato     Facebook     Twitter

  • MileMijatovic replied

    Hello, 

    No, I don't want to do that in parent theme, because when I update the theme in the future, all changes will be overwriten. 

    I already did that in housico-child , function.php, like this 

      function dequeue_deregister_scripts_styles() {

        /** Dequeue scripts and styles from parent theme */
       ... more code here...

        wp_dequeue_style('housico-fonts');

        ... more code here...

        /** Deregister scripts and styles from parent theme */

       ... more code here...

        wp_deregister_style('housico-fonts');

        ... more code here...

     }

      add_action( 'init', 'dequeue_deregister_scripts_styles', 98 );

    Also , I tried and like this, dequeue and deregister 'redux-google-fonts-' but does not work - http://prntscr.com/t7hc6r

    I want to dequeue and deregister style from this - please see screenshot - http://prntscr.com/t7hfrh, but in child theme 

    Please help me how to dequeue and deregister 'redux-google-fonts-'

  •   FlexiPress replied privately
  • MileMijatovic replied

    Thank you so much :) Work like a charm

    Can you tell me , how can I change delimeter icon of breadcrumb from child theme ? I found file breadcrumb.php in includes/lib/breadcrumb.php but when I copy the whole function 

    function housico_breadcrumbs() {
    ...

    $delimiter      = 'here I want to use my custom svg icon' 

    ...

    The theme does not work , and instead of home page , in error log I have message 
    [27-Jun-2020 16:22:34 UTC] PHP Fatal error:  Cannot redeclare housico_breadcrumbs() (previously declared in /home2/baummat/public_html/wp-content/themes/housico-child/functions.php:97) in /home2/baummat/public_html/wp-content/themes/housico/includes/lib/breadcrumbs.php on line 196

  •  101
    FlexiPress replied

    Try to add the following in breadcrumbs.php (both in parent and child theme)

     if ( ! function_exists( 'housico_breadcrumbs' ) ) { 

    Kind regards,


    FlexiPress Support

    Follow on     Envato     Facebook     Twitter

  • MileMijatovic replied

    Thank you very much, works perfectly, 

    but please make sure to add that line in parent theme when you update the theme, because when I update the theme, if you don't add that line, the theme will not work in my case. 

  •   FlexiPress replied privately