I have started a new site (here), I want to add the theme a RSS icon/logo on the top right of the theme (like in this theme).
What is the best way for doing that? (PHP/CSS wise)
I have started a new site (here), I want to add the theme a RSS icon/logo on the top right of the theme (like in this theme).
What is the best way for doing that? (PHP/CSS wise)
You must be logged in to post a comment.
You want some code to be added to the
#title
element. You can do this, as Sorich said, by copying theheader.php
file and just adding it there, but you could also try to add it in the footer and then using Javascript move it to the correct element. This might survive theme upgrades better, but is maybe not so user-friendly (the image appears just after the page has been loaded, giving a strange flash).The code you need is simple, let’s take the example you gave:
Of course, you would copy the image to your own server and change the path. You can check the styles used on the page, using a good web inspector/debugging tool (like Firebug).
Generally:
With the theme you are using on your blog, there is no hook. So, I would recommend creating a Child Theme. The benefit is that your modifications will not be overwritten during a theme upgrade.
Steps:
header.php
from the theme directory to the child themeheader.php
file in the child theme directorySee the codex for details about the feeds URLs.
It depends. There is number of ways theme can be customized:
Most basic way to modify header is
header.php
template, called byget_header()
function.But without seeing the internals the only person who can properly answer this is theme’s developer.