Code for Adding Sticky Image to Header with URL Redirect

This topic has 1 reply, 1 voice, and was last updated 4 years, 9 months ago by Spiracle Themes.

Viewing 1 reply thread
  • Author
    • #1185


      I wanted to know if it is possible to add a “Button” to the right side of the header like my logo is on the left, so that it is sticky and shows up on every page like my logo AND so if you click it, it redirects to another page on the same site. Is there a code for that somewhere or can I add it?

      It’s an image I have that I want to add. I’ll have to add the redirect URL to it.

      Any code for that?

      My website is (WordPress site)


    • #1186

      Spiracle Themes

      Hello TouchStone,

      You can add an image button on the menu. Please follow the steps to add an image button.

      Step 1) Go to Media -> Add New and upload a new image for your button. Make sure the height of the image is not more than 30px. Once the upload is done, you need to copy the URL of the image. Clicking on the image will open its details.

      Step 2) Next we have to go to Appearance -> Menus

      Step 3) On the Left-hand side, you will see few options to add menus like Pages, Posts, Custom Links, Categories etc. Click on Custom Links

      Step 4) Now Custom Links tab will open. Enter the URL for the menu. And for the Link Text, you need to paste the image URL you copied above in Step 1.
      put this image code in HTML. <img src="image url" />

      Example : <img src="http://localhost:8080/prasoon/wp-content/uploads/2017/06/c4.png" />

      Step 5) Click Add to Menu and save your menu.


Viewing 1 reply thread

Reply To: Code for Adding Sticky Image to Header with URL Redirect

Your information: