Theme options changes - by neil - on WordPress WooCommerce support

Solved8 replies2 participantsUpdated by Robert Hall

  • Avatar: midlandsonline
    neil
    Participant

    Hi there

    Two questions.

    Firstly I need to remove access to the import/export option in theme options so that my client does not have access to all those other theme options.

    Can you tell me the file I need to amend to do this please.

    Also, is it possible to remove the name Royal Store from the header of the theme options? If so, please again tell me the file I need to change.

    Thank you

    8 Answers

    Avatar: midlandsonline
    neil
    Participant

    Is anyone able to give me an answer to this please?

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    1)You can try to use some third-party plugin to implement such functionality.
    https://wordpress.org/plugins/user-role-editor/
    2)Find royal\option-tree\includes\ot-settings-api.php file and comment out (line 284):
    // echo '<h3 class="theme-tittle">'.ETHEME_THEME_NAME.'</h3>'.'<span class="theme-version">v '.$theme_data->version.'</span>';
    But we strongly don’t recommended to do it.

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant

    Great thank you for this that worked to remove theme name

    Is there a way to comment out the import/export option within the theme options?

    Avatar: Robert Hall
    Robert Hall
    Participant

    Did you tried to use some plugins to implement such functionality?

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant

    Hi Robert

    Yes I tried that but it just gives the option to allow or disallow access to the theme options.

    I dont want my client to have access to the Import/Export option within the option tree where he can have access to all 50 themes as I think this may cause some problems.

    I think you may have misunderstood me, this is not to block access WordPress tools section its actually in the option tree if that makes sense. I just wondered if theres some code I can comment out for this section only

    Thanks

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    You need comment out this code in royal/framework/theme-options.php (line 105-109)

    /*array(
                'id'       => 'backup',
                'title'    => 'Import/Export',
                'icon'     => 'icon-cog'
            )*/

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant

    Perfect

    You guys are awesome!

    Avatar: Robert Hall
    Robert Hall
    Participant

    You are welcome and thank you for the feedback.
    Have a good day!

    Regards,
    Robert Hall.

The issue related to '‘Theme options changes’' has been successfully resolved, and the topic is now closed for further responses