• phybot

    (@phybot)


    Hi,

    On my website I had a contact block at the bottom with a Facebook icon and an Email icon that people could click on. Now the block is just empty, there are no icons or links anymore. Can anybody help me figure out why they disappeared. Here’s the code I found in template-home.php that seems to take care of that section:

    
    <!-- START SOCIAL LINKS -->
    	<div id="contact" class="text-center col-md-12 col-lg-6 no-padding">
    		<div class="inner-wrapper">
    			<div class="inner">
    				<?php if ( ! empty( $facebook ) ) {
    					echo '<a href="' . esc_url( $facebook ) . '" class="icon-facebook social-icon" target="_blank" data-toggle="tooltip" data-placement="bottom" title="' . __( 'Connect with us on Facebook', 'inspiraction' ) . '"></a>';
    				}
    
    				if ( ! empty( $email ) ) {
    					echo '<a href="mailto:' . sanitize_email( $email ) . '" class="icon-mail4 social-icon email" target="_blank" data-toggle="tooltip" data-placement="bottom" title="' . __( 'Email us', 'inspiraction' ) . '"></a>';
    				} ?>
    			</div>
    		</div>
    	</div> 
    	<!-- END SOCIAL LINKS -->
    

    Earlier in the file, I also found this :

    
    $facebook = get_post_meta( $page_front, ‘wpcf-facebook-url’, true );
    $email = get_post_meta( $page_front, ‘wpcf-global-email’, true );
    

    Any idea of why they are not showing up or what I could do to make them appear again ?

    Thank you !

    • This topic was modified 5 years ago by James Huff. Reason: redundant link removed

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like you fixed this already, as I can see the FB and Email icons on the site.

    Good luck!

    Thread Starter phybot

    (@phybot)

    Hi George,

    Thanks for looking into it, but I don’t understand as I still don’t see the icons… Could it be a browser issue then ? I tried with Chrome and Brave… Or any other theories ?

    Maybe we’re looking at different things? I was looking at the white box in the lower-right corner of the page. Below is a full-page screenshot of what I see from my end (the same in Firefox, Chrome, Brave, and Edge). If you were referring to a different section of the page, kindly clarify the specific area I should be looking at.

    Thread Starter phybot

    (@phybot)

    No, you’re right, that’s exactly the area I’m talking about. That’s strange ! Because on my computer it’s just a white block with no icons. I don’t understand. I just cleared my cache on Google Chrome and reloaded the page, but it’s still blank. What browser are you using ? Could it be the browser ?

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

The topic ‘Help getting Contact icons/links back’ is closed to new replies.