• Resolved rtek

    (@rtek)


    Hi,

    The icons on the footer have disappeared. I can see them when I’m logged in but not when I’m logged out. I’ve already tried clearing the cache of both my browser and WordPress.

    Could you please help me?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you check the a couple of things first?

    1. Please deactivate all plugins you may have already installed in your system and check if you still cannot see the social icons as an anonymous user (visitor, not logged in yet). If you can see them now, then one or more plugins in your system have impact on this. Go on activating one plugin at a time and keep checking when the icons disappear again.

    2. If above is not applicable (no plugin installed yet / deactivating does not help), then log-out and log back in as a user with subscriber or participant role, i.e. lower privilege than that of administrator. Are you still missing the icons or they are now visible?

    Let me know what you find.

    I’m having the same problem on my site, the footer icons do not show. I’ve deactivated all plugins, no luck. The icons only show when I’m logged in as an administrator. I’ve also tried logging in as a subscriber and it doesn’t show either.

    http://172.245.58.142/~phillywe/

    I installed the theme and found the reason. In footer.php the visibility of footer section icons are protected and only available for users who can “edit_theme_options”. The theme author/s can tell you why the protection is added.

    If you look between line no. 26 and 48 in footer.php you will find code like this:

    if ( current_user_can( 'edit_theme_options' ) ) {
       $zerif_address = get_theme_mod( 'zerif_address',sprintf( '<a href="%1$s">%2$s</a>', esc_url( admin_url( 'customize.php?autofocus[control]=zerif_address' ) ), __( 'Company address','zerif-lite' ) ) );
       $zerif_address_icon = get_theme_mod( 'zerif_address_icon', get_template_directory_uri() . '/images/map25-redish.png' );
    } else {
       $zerif_address = get_theme_mod( 'zerif_address');
       $zerif_address_icon = get_theme_mod( 'zerif_address_icon');
    }
    ...

    means the icons will be visible for user with capability ‘edit_theme_options’. If you log in as an admin and hover over the footer icons, you will see they are pointing to Customize link, which should not be available for a visitor or a user without proper privilege.

    Here is a quick fix:

    if ( current_user_can( 'edit_theme_options' ) ) {
       $zerif_address = get_theme_mod( 'zerif_address',sprintf( '<a href="%1$s">%2$s</a>', esc_url( admin_url( 'customize.php?autofocus[control]=zerif_address' ) ), __( 'Company address','zerif-lite' ) ) );
       $zerif_address_icon = get_theme_mod( 'zerif_address_icon', get_template_directory_uri() . '/images/map25-redish.png' );
    } else {
       $zerif_address = get_theme_mod( 'zerif_address', sprintf('%1$s', __( 'Company address','zerif-lite' )) );
       $zerif_address_icon = get_theme_mod( 'zerif_address_icon', get_template_directory_uri() . '/images/map25-redish.png' );
    }

    Look at the else part of the above code snippet. It will make the address to appear for all users and visitors but only allow admin to use the customizer to edit content.

    Again, I am saying, it is always better to ask the theme author for the best solution. What I have wrote above should be used a quick and dirty fix to make your site to move on.

    Let me know if this helps.

    Thank you!

    Thank you Subrata Sarkar for finding this! Hopefully the theme authors can get it fixed soon…

    Hi there,

    We had to made this change, as it was one of the requirements to keep the theme live on ww.wp.xz.cn. Those icons are used only as sane defaults now. Meaning that they will appear by default only for logged in users.
    To change that, you will have to update those icons ( to actually save them in the database ). You can add new icons, or save those images ( the current icons from customizer, on your computer ) and upload them in the corresponding fields, and hit save.
    This way, you will be able to see the icons either logged in or not.

    Let me know if you manage to do that.

    Regards,
    Rodica

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Missing footer icons’ is closed to new replies.