Site logo

Archived topic

Global content above back to top button

4 replies · Started by Leon on November 29, 2017

Viewing posts 1–5 of 5

Hi Tom,

Apologies for so many questions recently. I was trying to customize a little bit.

I'd like to add another button right above the back to top button. This button is email us. I added below

<div style="background: red;font-family:arial; position: fixed; bottom: 70px; right: 30px; width: 40px; line-height: 40px; text-align: center; border-radius: 3px;">	
	 
   <a href="mailto:interpreterdatabase.com@gmail.com">Email Us</a>

	</div>

The color red is just for testing thought. Will be either same as back to top background color or similar.

My questions is: I added the above code to a specific page using the editor and that allows it to appear on that page only. How can I make that button global please? (appear on every page just like the back to top button.)

I think in this way it would be easier for visitors to contact us on mobile devices.

Thank you
Leon

Hi Leon,

You would add it into GP Hooks to make it global. The wp_footer hook would likely be best.

Thanks Tom. I'll try it out and let you know later today.

Hi Tom,

Coming back to say thank you. It worked out perfectly.

Thanks
Leon

You're welcome :)

This archived topic is closed to new replies.