New Landing How can we help? Cardinal Remove mouseover on icon box

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Cardinal
  • #291340
    Dindoop
    Member
    Post count: 37

    Hi,

    I don’t want a mouseover on the icons, which by default turns to black on mouseover. How can I remove it? Could not find an option in the ‘Edit icon box’ tab.

    Cheers
    Dinoop

    #291418
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    .minimal-design .sf-icon-box-standard .sf-icon-cont:hover {
      color: #777777!important;
    }

    – Kyle

    #291959
    Dindoop
    Member
    Post count: 37
    This reply has been marked as private.
    #291976
    Dindoop
    Member
    Post count: 37

    Hi,

    Can you suggest a way the mouseover can be disabled rather than adding another color to it? 🙂

    Dinoop Dayanand

    #292007
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Just attach a screenshot to indicate the element of mouse over.
    Thanks
    Mohammad

    #293500
    Dindoop
    Member
    Post count: 37

    Hi,

    I have taken a photo to show the mouse position that triggers the change in color.

    Best
    Dinoop

    Attachments:
    You must be logged in to view attached files.
    #293590
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try add this to your custom css:

    .minimal-design .sf-icon-box-standard .sf-icon-cont:hover .sf-icon, .minimal-design .sf-icon-box-standard.sf-hover .sf-icon-cont .sf-icon {
      color: #777!important;
    }

    – Kyle

    #293702
    Dindoop
    Member
    Post count: 37

    Hi Kyle,

    This works perfectly well if I had the same color icon across pages.

    The issue is that I have a color theme across all pages.

    For ex
    Page 1 : Grey, where icons and the headings are Grey
    Page 2 : Red, where icons and the headings are Red, now on mouse over its turning grey.

    How can I handle scenarios? Would this become a complicated? Or is there a way the mouseover color itself can be removed? So that it retains the normal color state.

    Best
    Dinoop

    #293849
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    If you open js/functions.js, locate this:

    		iconBoxes: function() {
    			if (isMobileAlt) {
    				jQuery('.sf-icon-box').on('click', function() {
    					jQuery(this).addClass('sf-mobile-hover');
    				});
    			} else {
    				jQuery('.sf-icon-box').hover(
    					function() {
    						jQuery(this).addClass('sf-hover');
    					}, function() {
    						jQuery(this).removeClass('sf-hover');
    					}
    				);
    			}
    		},

    Replace that with this:

    		iconBoxes: function() {
    			if (isMobileAlt) {
    				jQuery('.sf-icon-box').on('click', function() {
    					jQuery(this).addClass('sf-mobile-hover');
    				});
    			} else {
    				jQuery('.sf-icon-box').hover(
    					function() {
    						//jQuery(this).addClass('sf-hover');
    					}, function() {
    						//jQuery(this).removeClass('sf-hover');
    					}
    				);
    			}
    		},

    Please note: you must disable the performance options in the Theme Options to output this updated JS.

    #293939
    Dindoop
    Member
    Post count: 37

    Hi David,

    Where do I find js/functions.js?

    Best
    Dinoop

    #294021
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Check in “wp-content/cardinal/js/functions.js”

    -Rui

    #294037
    Dindoop
    Member
    Post count: 37

    Sorry, Under which left nav section does it come?

    Appearance > Editor
    or
    Theme options > Custom CSS/JS

    #294143
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You need to use the file explorer in your server hosting. To edit it directly in WordPress you need to install the plugin Solid Code Editor

    https://wordpress.org/plugins/solid-code-theme-editor/

    -Rui

Viewing 13 posts - 1 through 13 (of 13 total)

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

License required for the following item
Login and Registration Log in · Register