Forum Replies Created
-
Mod
In reply to: A simple question regarding adsense in action hooks
November 14, 2011 at 10:58 pm #19657Q:
Hi can you help me out? I have no idea how to do that.
A:
Just put a “” in front of them.
Q:
Is there some tutorial on that on the internet?
A:
read part 5 (the last bullet point)– it’s buried in there somewhere. You can also try this one, which is far better than anything I found on the PHP manual.
@Josh
I did figure out there was a better way to implement that code, but I used
is_single()which works on posts, but not pages. But it keeps it off archives. Not sure of something that does posts and pages, but nothing else. Probably need anANDstatement in there somewhere.Mod
In reply to: Inserting recurring image into each post automatically
November 14, 2011 at 10:37 pm #19738You can also do this via a Graphene action hook widget area. See this nifty, easy-to-read tutorial: http://blog.kjodle.net/2011/11/04/graphene-action-hook-widgets-an-easy-way-to-modify-your-blog/
If you are really daring, you can do this via an action hook in your
functions.phpfile, like this:add_action ('graphene_after_post_content', 'add_flourish');
function add_flourish() {
echo "<p class="flourish" style="text-align:center">
<img src="http://blog.kjodle.net/wp-content/uploads/2011/09/recipeflourish.gif"
border="0" style=" -webkit-box-shadow: 0 0 0px #fff;
box-shadow: 0 0 0px #fff;"
></p>";
}to the end of each post. (This was an experiment, btw, and I really need to change it.)
That’s copied directly from my own functions.php file. It’s what adds the
to the end of each post.
Mod
In reply to: A simple question regarding adsense in action hooks
November 14, 2011 at 11:08 am #19653You need to escape all the quotation marks in your
echostatement. Just put a “” in front of them.Mod
Right now, your footer is gone entirely, which is why neither it nor your sidebar is appearing. I also noticed a lot of photos are missing from page 2.
Do you have FTP access to your site?
Mod
Much better! I love the look of your blog, BTW.
Mod
If it’s in the sidebar, then yup, that’s why. The only other thing I can think of is that your footer.php file became corrupted somehow. It’s the ‘somehow’ that bothers me.
It could be that a third-party code changed, however. Try disabling any of those first to see what happens.
Mod
Yes, try this in custom CSS:
.post-title a, .post-title a:visited {border:0px;}This way, the border gets applied just to the title and not to the actual text.
Mod
Yes, this could easily be achieved with Graphene just by using Action Hook Widget areas and a PHP widget. See this tutorial.
Mod
Custom Menus tutorial: http://blog.kjodle.net/2011/08/25/how-to-create-and-use-custom-menus-in-wordpress/
Mod
In reply to: footer widget / rss feeds don't display + social media icons either
November 13, 2011 at 7:24 pm #19644Action hook widget areas is the way to accomplish this. I wrote a tutorial explaining how to use them, although it’s incredibly easy. You can read it here:
http://blog.kjodle.net/2011/11/04/graphene-action-hook-widgets-an-easy-way-to-modify-your-blog/
