Okay
  Public Ticket #694918
Salient dashboard icon size, GravityView
Closed

Comments

  • Thomas started the conversation

    Today I installed the GravityView plugin.

    In dashboard, when I click on 'Views' to access the GravityView settings the Salient icon goes large.

    I tried adding the code from here – https://themenectar.ticksy.com/ticket/638156 – but I get this error when I try that: 

    "Parse error: syntax error, unexpected ''admin_head\', \'admin_icon_cs' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) in /var/sites/d/demo.johnstonopen.co.uk/public_html/wp-content/themes/salient-child/functions.php on line 12"

    The large icon only appears when accessing the GravityView settings.

    Any help greatly appreciated.

  • Thomas replied

    Attaching a screenshot.

  •  8,992
    Tahir replied

    Hey ,
    Could you please go through this checklist quickly so we can rule out common issues https://themenectar.ticksy.com/article/5032/ .
    Please clear your cache using this guide: https://themenectar.ticksy.com/article/6226/ 
    Best.


    ThemeNectar Support Team 

  •   Thomas replied privately
  •  8,992
    Tahir replied

    Hey ,
    Try doing a Force Refresh in the Admin pages to reload the cache.

    Depending on your operating system all you need to do is the following key combination:

    Windows: ctrl + F5
    Mac/Apple: Apple + R or command + R

    Linux: F5

    Best.


    ThemeNectar Support Team 

  • Thomas replied

    I've tried the refresh several times (I'm on Mac) and have also logged in as both me and the account I set up for you in a private Safari window. I've also tried this in Chrome and on another Mac.

    The big icon remains.

    Thanks for your perseverance.

  •  8,992
    Tahir replied

    Hey Again,

    Add this code to functions.php 

    add_action('admin_head', 'admin_custom_css');
    
    function admin_custom_css() {
    echo '<style>
    #toplevel_page_redux_options .wp-menu-image img, body #adminmenu .wp-menu-image img {
        width: 20px;
        opacity: 0.64;
        padding-top: 6px;
    }
    
    </style>';
    }
    

    Best


    ThemeNectar Support Team 

  • Thomas replied

    Thank you Tahir. That has worked. Many thanks!

    There's a secondary issue where the Nectar Shortcodes seem to be displaying oddly below the main GravityView metaboxes.

    It's not affecting anything so it's not something I'm concerned with, just drawing it to your attention is case you're working on overall compatibility between Salient/GravityView plugin.

    Happy for you close this ticket.