New Landing How can we help? Atelier Inconsistent sticky-header margin + Cart & User Account icon change

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Atelier
  • #315931
    filipecardigosoliveira
    Member
    Post count: 73

    Hi support.
    I’m starting to develop a new website and I’m structuring things up.
    I found an issue with the sticky-header on iPad. Apparently there a top margin that reveals the content behind the sticky header. This doesn’t’ show up on Google Chrome’s developer tools (iPad landscape version), only in iPad’s Chrome, which I found really strange.
    If I change the margin-top to -31px it also influences the Desktop version, which I don’t want to happen.
    Can you please help me out?

    Also, I’d like to change the icons of the Cart & User Account on the right header bar.
    As an example I’d like to use <i class=”fa fa-smile-o” aria-hidden=”true”></i> for the Users Account.
    How shall I do it?

    Thanks for your time, I’m enjoying your theme 🙂
    Filipe.

    Attachments:
    You must be logged in to view attached files.
    #316075
    David Martin – Support
    Moderator
    Post count: 20834

    1) Are you logged in with the WP Admin bar hidden for your profile?

    2) Please install and activate the supplied child theme, inside the child theme functions.php file paste this code:

    https://gist.github.com/webadelic/a5577ff3c378e7a88bbad802b2b93bba.

    Search for this <i class="sf-icon-account"></i> and change the icon code to yours.

    #316117
    filipecardigosoliveira
    Member
    Post count: 73

    1) Yes, maybe it was that, wotking fine now.

    2) Worked fine for the account icon.
    Where can I change shopping cart icon though? I searched for it in the code you sent but it isn’t there.

    #316230
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    just add this code in the functions.php of you child theme and replace the content of the function sf_atelier_header_cart_icon()

            // Header cart icon
    	function sf_atelier_header_cart_icon() {
    		return '<i class="sf-icon-cart"></i>';
    	}
    	add_filter('sf_header_cart_icon', 'sf_atelier_header_cart_icon');
    	add_filter('sf_mobile_cart_icon', 'sf_atelier_header_cart_icon');

    Hope it helps.

    -Rui

    #316233
    filipecardigosoliveira
    Member
    Post count: 73

    Actually the website and admin panel don’t seem to like that code, they get blank!
    I’m putting this code:

    // Header cart icon
    function sf_atelier_header_cart_icon() {
    return ‘<i class=”fa fa-shopping-cart” aria-hidden=”true”></i>’;
    }
    add_filter(‘sf_header_cart_icon’, ‘sf_atelier_header_cart_icon’);
    add_filter(‘sf_mobile_cart_icon’, ‘sf_atelier_header_cart_icon’);

    #316237
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Check when you pasted if it remained with the same format(quotes, etc)?
    Can I give it a try? If it goes blank will need you to edit those with ftp or file explorer.

    -Rui

    #316238
    filipecardigosoliveira
    Member
    Post count: 73

    Yes please, go for it.
    I’m using an FTP client to make changes in functions.php
    Double checked the format.

    #316245
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    it went blank, can you provide me ftp access to check what’s going wrong?
    Can you see any error inside the error log files?

    -Rui

    #316246
    filipecardigosoliveira
    Member
    Post count: 73
    This reply has been marked as private.
    #316253
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Tried several stuff, but couldn’t understand what was.

    Can you try a css approach using the code below.

    .sf-icon-cart:before {
        content: '\f07a';
        font-family: fontawesome;
    }
    .shopping-bag-item a>span.num-items {
        right: -13px!important;
    }

    -Rui

    #316258
    filipecardigosoliveira
    Member
    Post count: 73

    Strange though..
    Solved with !important after.
    Thanks!

    #316262
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem.

    -Rui

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

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

License required for one of the following items
Login and Registration Log in · Register