Announcement

Collapse
No announcement yet.

Adding custom html and JS to my site title.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding custom html and JS to my site title.

    I want to add the following code to my site tittle before the text, but in the link to my home page:

    Code:
    <img src="/wp-content/uploads/dynamik-gen/theme/images/blaze-studios-gray-circle.png"  onmouseover="this.src='/wp-content/uploads/dynamik-gen/theme/images/blaze-studios-logo-circle.png'" onmouseout="this.src='/wp-content/uploads/dynamik-gen/theme/images/blaze-studios-gray-circle.png'" alt="Blaze Studios Logo" class="blaze_logo" width="90">
    I tried to do this with a hook, but it puts in either above or below the site tittle.

    Does anyone have any ideas on how to do this?

  • #2
    but it puts in either above or below the site tittle.
    I guess you could add a CSS class to that image and adjust the problem with custom CSS (float? inline-block?). Hard to say as we can´t see it.

    Comment


    • blazestudios23
      blazestudios23 commented
      Editing a comment
      I guess I could add it as a background to the title and then put in padding and :hover, so it changed color onmouseover. It would be so much easier just to drop on the code above but, I think I figured it out just from what you said.
Working...
X