I am building an options page for my custom wordpress theme. I found whatever I wanted to add in 3 different tutorials on the internet. The problem is that in every tutorial the content appears in a different place. I want to make my own main section in admin sidebar and place them under 3 different sub menus. I tried a lot but I didn’t manage to do it. Can someone do this and explain me the way he did it? What should I have done? I can pay if you want to. Thanks in advance. Below is the code:
The code from the first tutorial (Appears as a sub menu under “Appearance”):
Really? I found both of them really helpful. Perhaps it would help to download a theme that already use the Settings API and multiple tabs in its theme options page. If it helps at all, try looking at http://wordpress.org/extend/themes/zenlite
If you’re making a settings page for a publicly distributed Theme, you should be putting that settings page under Appearance. Why do you need three (?!?) separate sub-menu pages for Theme settings?
Chip I didn’t say i need three different sections. I said that I found the theme options I want to include in my theme in three separate tutorials but I want to add them in one single submenu (in appearance as you said) and this is what I cant’t do.
Sorry, I’m confused by this:
I want to make my own main section in admin sidebar and place them under 3 different sub menus.
…compared to this:
I said that I found the theme options I want to include in my theme in three separate tutorials but I want to add them in one single submenu (in appearance as you said).
Probably due to insufficient amount of coffee today, I’m not following you. Let’s start from the beginning: leaving aside any tutorials you’ve found, what exactly do you want to do in your Theme? Once I’ve grasped that, I’ll try to help walk you through it.
You are right I was not clear enough. I want to add these into one menu called “Theme Options” under appearence.
Okay, next step: what options exactly do you want to add? 🙂
The options I want to add are included in files I linked. 1)Color options 2)Show/hide some containers and 3)Add text in footer and other areas which I’m going to add later. I like the way the options work. I dont know how to combine them in one single options page. 🙂
Just FYI, the code was moderated, so I never saw it.
There’s no reason you can’t put all of those options on one settings page. Just a fair warning, though: I’ll rely heavily on my tutorial (that Esmi linked, above). I would strongly recommend giving it a read, and then let me know what questions you have about following it.
I have read your tutorial but I still cant… I provided the code in my previous reply… https://rapidshare.com/files/3110199294/theme-options-pages.rar
I have read your tutorial but I still cant…
Can you tell me exactly what you can’t, so I can try to change that into a can?
Let’s start with the first step: can you define an array to hold your default option values?
If I want to make an options page like you did in your tutorial (I find it awsome) I would really be able to do it. Now, I have the code from three different tutorials and I can’t combine it in order to add them in one single page… Now the sub menus appear in different places…
- The topic ‘Options page content place’ is closed to new replies.