Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Change Admin settings through childtheme

  1. #11
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    Thanks dubya for your assistance, I am waiting then
    have a nice day
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  2. #12
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    Today, I received the solution from Sebet , he is just the best ( I quote his message)

    To add more color schemes, on the child theme functions.php add the following lines :

    Code:
    add_action('admin_init','my_colors');
    
    function my_colors() {
    
    global $options_settings;
    
    $my_colors =  array( 
                     'style-1.css' => 'My Style 1' ,
                     'style-2.css' => 'My Style 2' ,
                    // add more styles below
            );
     
    $options_settings[2]['options'] = array_merge ( $options_settings[2]['options'], $my_colors ) ;
    
    }
    About the admin hooks,I believe that once dubya receives a reply from the dev team, He will surely update us with any futher information, since we will need these hooks.

    Thanks to Sebet for the solution and to dubya and all the dev team of Appthemes for the support!
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  3. The Following User Says Thank You to spartac For This Useful Post:

    samcy (April 21st, 2012)

  4. #13
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    Thanks for sharing the code. Very usefull
    Rolf Hassel (Samcy)

  5. #14
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    Quote Originally Posted by spartac View Post
    Today, I received the solution from Sebet , he is just the best ( I quote his message)

    To add more color schemes, on the child theme functions.php add the following lines :

    Code:
    add_action('admin_init','my_colors');
    
    function my_colors() {
    
    global $options_settings;
    
    $my_colors =  array( 
                     'style-1.css' => 'My Style 1' ,
                     'style-2.css' => 'My Style 2' ,
                    // add more styles below
            );
     
    $options_settings[2]['options'] = array_merge ( $options_settings[2]['options'], $my_colors ) ;
    
    }
    About the admin hooks,I believe that once dubya receives a reply from the dev team, He will surely update us with any futher information, since we will need these hooks.

    Thanks to Sebet for the solution and to dubya and all the dev team of Appthemes for the support!
    Thanks Spartac. We're already planning new hooks the admin pages.
    Checkout my products on the Marketplace.

  6. The Following User Says Thank You to sebet For This Useful Post:

    spartac (April 21st, 2012)

  7. #15
    evertsemeijn's Avatar
    Join Date
    Jan 2011
    Location
    Amsterdam, The Netherlands
    Posts
    103
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Having read the above discussion I would love to hear what everybody thinks of adding child theme settings to the JobRoller menu. I think adding a theme option page to the appearance menu is what users may be expecting.

    What do you think?
    We do more than JobRoller childthemes at FourLeafed.com

  8. #16
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    exactly evertsemeijn,but my case was a bit diffirent!

    My case was to add color schemes, so it was not logic to create a separated appearance menu while the users still have in mind that when they want to change the colors they do to Jobroller settings, and in the end, they be using child themes.
    I totaly agree with You, but for my issue i would just dublicate settings ( since there are dublicated color schemes to the parent theme)

    Other wise, it would be great and useful to make separated settings for the childtheme.This makes it original.
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

  9. #17
    evertsemeijn's Avatar
    Join Date
    Jan 2011
    Location
    Amsterdam, The Netherlands
    Posts
    103
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Hi Spartac,

    I though you wanted to add more settings than just the colorschemes. I was wondering what others are thinking of it since I am working on JobRespons, which will have a lot of settings. Intergrating it into JobRoller settings panel would make it confusing. I have therefore chosen to add a new theme options page to the admin instead of adding it via admin hooks.

    It might be good if Appthemes gives some directions to this. What settings should be added to the JR admin and what shouldn't. Might be good to streamline the experience. Anyone?
    We do more than JobRoller childthemes at FourLeafed.com

  10. #18
    spartac's Avatar
    Join Date
    May 2011
    Posts
    7,171
    Thanks
    75
    Thanked 830 Times in 808 Posts
    Yes evertsemeijn, I needed only to add the color schemes. in case i need more, so your idea is better to make theme option page with the new settings.
    I wish you the best luck for your childtheme
    Do you need high-quality content for your Website? For a significantly reduced price? Try aicontently.com






    We answer the questions in threads as fast as the private messages, So do not send support questions via private message. Use the forum instead and open a new thread for every issue.
    Before you send any PM , Please read These rules .

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: September 4th, 2011, 10:13 PM
  2. Replies: 3
    Last Post: April 4th, 2011, 03:55 AM
  3. Hide certain settings in Admin
    By artfan1 in forum ClassiPress General Discussion
    Replies: 5
    Last Post: July 2nd, 2010, 12:46 PM
  4. Hide certain settings in Admin
    By artfan1 in forum Help Using ClassiPress
    Replies: 3
    Last Post: December 31st, 1969, 06:00 PM