need help creating theme options

by 1 replies
2
hello guys and girls,

ive been creating wordpress themes for a little bit now (mainly css)

i have now created mtheme code (custom widget area, dynamic classes for titles, post page titles h1 instead of h2)

this works great so far (no styling, working on the backend for now)

i want to have some theme options for the theme, theres lots of tutorials i know, but im still struggling.

rather than having a "theme options" page, i wanted to have my own top level dashboard item and seperate the theme options into sub pages.

i found a tutorial to do this and it work great. heres the code.



this makes the pages fine, but i dont know how to add multiple options to each page? i found a way to add one option per page, but thats no good.

i heard about using arrays, but again i learn by copy and paste rather than reading and every way i try doesnt seem to work.


each page has 1 function, can i make that function create other functions? i think i could get it to work that way.

can someone help me?
#programming #creating #options #theme
  • okay guys, im surprised noones posted an answer here, but lukily i foun out how to do it.

    now i have encountered another problem.

    i want to have an option to choose a stylesheet from a folder on the site full of .css file.

    does anyone know how i could go about having a dropdown menu that would show all available stylesheets in say a theme/styles/ folder.

    here is my updated code that i am working from

Next Topics on Trending Feed