PDA

View Full Version : Modifying wordpress themes


martyn11post
11-20-2007, 04:05 PM
I want to do a few tweaks to my wordpress theme, is it easy?
I have basic knowledge of html, css, and php. What I'm aiming to do is modify posts, so that all have some code inserted by php using an include command. This would then show subscribe options and socialbookmarking links etc.

Could this be modified again so only posts which are being displayed individually show the code, so therefore the posts on the welcome page have it removed.

ses5909
11-20-2007, 04:35 PM
It is pretty easy martyn. You would modify the page called single.php and don't modify the index.php page.

martyn11post
11-20-2007, 05:14 PM
OK, thanks, I will give it a go!

adalante
11-21-2007, 06:24 PM
Yup, like ses5909 said, it's not that hard, however you said you wanted to "show subscribe options and socialbookmarking links" and both could be accomplish via plugins.

Subscribe-Remind: WordPress Plugin to Increase your RSS Subscribers Trevor Fitzgerald (http://www.trevorfitzgerald.com/projects/subscribe-remind)

WordPress Plugins | alexking.org (http://alexking.org/projects/wordpress) (Share This Plugin)

Modified Cars
11-23-2007, 03:03 PM
I've managed to tweak my theme. I know a bit of asp.net but no PHP. I used article on how to make a theme to understand what was going on and then it was plain sailing. I googled for the article.

mccormicky
01-14-2008, 01:48 PM
It's definitely a learning process.http://perishablepress.com/ has great stuff on modifying the loop-if you want to go even farther into tweaking.And of course the WP Codex.I'm finding out fast the only limit to what you can do with WP is your own ignorance of what you can do...if that makes any sense.

Kirk M
01-17-2008, 12:27 AM
You might also want to consider the Exec PHP plugin (http://wordpress.org/extend/plugins/exec-php/) that will allow you to execute PHP commands inside the post itself (among other things). Be advised, this is an very powerful plugin and it pays to read the instructions for it located on the plugin's page at the author's site.

Or do you already know about this one? :)

martyn11post
01-17-2008, 02:43 PM
Cheers,

Started using Exec PHP plugin a while ago, found it useful as I didn't have to start pulling a theme a part to run a little bit of code, although you have to be a little careful with it as you said.

I think I will have to set up a separate blog so I can experiment with different things!

Thanks,
Martyn