Viewing 10 posts - 1 through 10 (of 10 total)
  • #268441
    ThinkProfits
    Member
    Post count: 8

    Hello Support Team,

    I was wondering if it is possible to remove the huge block of inline css in the Neighbourhood theme or to put it into an external stylesheet?

    Thanks!

    Simon

    Attachments:
    You must be logged in to view attached files.
    #268450
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am afraid that its not possible because we cant update it color customizer.
    Thanks
    Mohammad

    #268487
    ThinkProfits
    Member
    Post count: 8
    This reply has been marked as private.
    #268518
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    That css can’t be in an external stylesheet because those rules are based on the options choose in the color customizer so they can’t be on a static css file.

    We have everything else in static files.

    -Rui

    #268530
    ThinkProfits
    Member
    Post count: 8
    This reply has been marked as private.
    #268536
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok, in the case it makes sense.
    When you finish the color changes, copy that inline style to the custom css or to the style.css of the child theme.

    In the functions.php of the child theme add this line of code to remove the inline styles.

    remove_action('wp_head', 'sf_custom_styles');

    let me know if this worked when done.

    -Rui

    #268542
    ThinkProfits
    Member
    Post count: 8
    This reply has been marked as private.
    #268544
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    guess we need to hook it in the init action hook.

    Place the line of code I provided inside the function sf_add_editor_styles() since that function is hooked in the init

    -Rui

    #268550
    ThinkProfits
    Member
    Post count: 8
    This reply has been marked as private.
    #268551
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Glad it’s sorted.
    -Rui

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

You must be logged in to reply to this topic.