Home Forums WoodMart support forum code in Custom CSS for admin dashboard not applying

code in Custom CSS for admin dashboard not applying

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #474046

    steen.r.nielsen
    Participant

    Code in Custom CSS for admin dashboard not applying.

    // Add custom CSS to Admin
    add_action('admin_head', 'my_custom_fonts');
    function my_custom_fonts() {
      echo '<style>
       .search-box input[name="s"] {
     width:300px;
    }
      </style>';
    }
    
    #474148

    Hello,

    This is not a CSS code.

    Please provide more details on the purpose.

    You can change the font by means of the Advanced typography option, which allows you to choose the item from a drop-down or insert your custom CSS class. Please navigate to the Theme Settings > Typography > Advanced Typography.

    Here is the documentation providing more detailed instructions: https://xtemos.com/docs/woodmart/advanced-typography-settings/

    Best Regards

    #474265

    steen.r.nielsen
    Participant

    This code above is css code example added in the functions. This code is the one I put in CCustom CSS for admin dashboard. Does not work.

    .search-box input[name="s"] {
     width:300px;
    #474268

    steen.r.nielsen
    Participant
    .search-box input[name="s"] {
     width:300px;
    }
    #474445

    Hello,

    Did you try Advanced typography?

    You do not need customization.

    Best Regards

    #474452

    steen.r.nielsen
    Participant

    Just reporting a bug.

    #474726

    Hello,

    Please move the code from functions.php to the Theme Settings > Custom CSS.

    If you have any questions please feel free to contact us.

    Best Regards

    #475019

    steen.r.nielsen
    Participant

    I di but it is not working in admin css reporting bug.

    #475025

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #475026

    steen.r.nielsen
    Participant

    Please find link.

    #475028

    steen.r.nielsen
    Participant

    example attached

    Attachments:
    You must be logged in to view attached files.
    #475944

    Hello,

    We have inserted the code and it works: https://monosnap.com/file/L45T7FFzAViiCg1X9TLX9IsrMoQ4vi and
    https://monosnap.com/file/yyr6rHiplpi4QNzo92WkgaaQ93VaPI

    Please check once more. Please note, the custom CSS works on the fren-end and it is not applied to admin area.

    Best Regards

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