Adsense option just on index page?
I like the opetion with the adsense as I like where it shows on my index page or home page, but I didnt really want it on the other pages, is there a way I can just place it on the index page?
please note I have a child theme page by help off Syahir Hakim in the past, look here what he did if needed:
maybe I could hard code this in the home.php file?
site is http://www.unleashedbeasts.com
AnonymousOctober 7, 2011 at 7:09 pm #18033
You can create a function and use an action hook to display it in your pages. Then use a conditional statement to ONLY show it on the page you desire.
Slightly advanced, but it CAN be done.ModMod
Nathan Rice has a good intro here:
AnonymousOctober 7, 2011 at 11:39 pm #18038
In theory, yes. In practice, NO. The problem is, this is the first tweak. You know there will be more. Then, when the new version of Graphene is released, you must remember EVERY tweak you made to core files, and update them accordingly.
By using action hooks, you keep all your modifications in the child theme, so when the new version is installed, and replaces all your parent files, your changes will remain unscathed.
Trust me, it is MUCH more work to redo your mods, than it is to handle your changes from a child theme.
Long story short.. You will safely be able to update your Graphene without having to redo all the modifications you made.
I was looking into this action hook thing and my head was starting to hurt allot
so what I did as I thought I would need to do some testing I installed a new wordpress on another domain I have and installed the latest Graphene theme and my child theme on that site, then I seen that in the options there is a action hook option in the advanced section and I can add a widget under the slider with it lol, that’s great, clever and just what I needed
So I will do an update on my real site and hope I dont brake it 😀
thanks for the support on thisMod
in the options there is a action hook option in the advanced section
I keep forgetting that this is now here in version 1.5, but it is exactly what you are looking for. Let us know how it works out.
hope I dont brake it
Just take good notes so you know what you did in case you need to undo it.
You must be logged in to reply to this topic.