Skip to content

I can't find the reference to change the url of my theme logo, can someone help?

I know it should my in header.php, but I can't seem to find it there. My objective is to change its destination, so that instead of the homepage, the logo will open a video.

I'd appreciate your help, thank you :)

EDIT: I forgot to add the website :p avotreboncoeur.com (work in progress)

1 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
4gnox7

Author

2
posts
4
comments
0
media
View profile

11 comments

If you want to change the src of your header logo, you can use javascript, add this to your custom js file.

$('.logo-img-wrapper img').attr("src", "<your video link>");

If you don't have that then checkout other parts to your template checkout page.php, header.php and there is sometimes two headers a main header, and a theme header but it varies per theme.

2 points

Should the file be called something like "custom.js"? Because I don't think there is one. I'm checking almost every file, without success :(

1 points

In your theme directory there is usually a folder labelled JS and in that folder is a script.js file which is all the script functions used by your site, past it in at the bottom of the script file and see what happens :)

2 points

I've not used the game-over theme before, might be worth asking on their support forum.

The logo might not be in your header.php file depending on how the developer structured the theme. The containing div is below. Try searching through the files for that. Don't forget to create a child-theme, otherwise updating the theme you will lose all your changes.

.logo-img-wrapper
2 points

I've already asked the support theme, and also left a comment on their public page (where sometimes they help costumers). The support theme replied they don't do customisation assistance, so I replied I'd wish at least to know where the function is. Let's hope they'll reply sooner or later...

Thank you for the suggestion, but I couldn't find this wrapper :(

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.