WordPress.org

Ready to get started?Download WordPress

Forums

Options page content place (14 posts)

  1. Arg Geo
    Member
    Posted 1 year ago #

    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"):

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. Arg Geo
    Member
    Posted 1 year ago #

    I really can't follow those tutorials.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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

  5. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    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?

  6. Arg Geo
    Member
    Posted 1 year ago #

    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.

  7. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    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.

  8. Arg Geo
    Member
    Posted 1 year ago #

    You are right I was not clear enough. I want to add these into one menu called "Theme Options" under appearence.

  9. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    Okay, next step: what options exactly do you want to add? :)

  10. Arg Geo
    Member
    Posted 1 year ago #

    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. :)

  11. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    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.

  12. Arg Geo
    Member
    Posted 1 year ago #

    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

  13. Chip Bennett
    Theme Review Admin
    Posted 1 year ago #

    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?

  14. Arg Geo
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic