[resolved] Twenty Eleven theme options - how do they work (2 posts)

  1. the1path
    Posted 5 years ago #

    Hi all,

    OK so Im looking into how the Twenty Eleven theme uses theme options.

    Im really not sure how it saves/stores your preferences, can anyone tell me?

    Also I noticed that the theme-options form has the following code:

    <form method="post" action="../../twentyeleven/inc/options.php">

    There is no such file?? However the settings save if you are using the Twenty Eleven theme. But I made a copy of the theme (and called it joeblogs) and get thi error when trying to save the theme options: The requested URL /twentyeleven/inc/options.php was not found on this server. So I change the the post code to:

    <form method="post" action="../../joeblogs/inc/options.php">

    And I get this error: The requested URL /joeblogs/inc/options.php was not found on this server.

    So if someone can explain how Twenty Eleven saves your preferences and also what the deal is with the non-existent options.php file, that would be amazing.

    Thanks in advance

  2. the1path
    Posted 5 years ago #

    Changed this to: <form method="post" action="../../wp-admin/options.php"> and it now works.

    Dont understand the <form method="post" action="../../twentyeleven/inc/options.php"> reference, I must be missing some kind of rewrite somewhere or summit. Duh.

Topic Closed

This topic has been closed to new replies.

About this Topic