30.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

08-17-2014, 12:55 AM (This post was last modified: 08-17-2014 12:58 AM by anomus.)
Post: #291
RE:
isitmeor it dosn't work, I've already checked that or i dont know with php file should I use.

for example testimontals
content-testimonials.php, template-testimonials.php,metaboxes-testimonials.php dosn't work :/

add_action( 'admin_menu', 'my_remove_menu_pages' );

function my_remove_menu_pages() {
remove_menu_page('metaboxes-testimonials.php');
remove_menu_page('template-testimonials.php');
remove_menu_page('content-testimonials.php');
}
?>

Help me please
08-17-2014, 01:48 AM
Post: #292
RE:
thanks, that was my oldest way of updating file through ftp, unfortunately my hosting doesnt offer zip and unzip function on its cpanel

so I have to transfer the entire folder and files in it through ftp one by one lol. Thanks guys for the input. Thanks again for this theme

keep it cumming :)
08-17-2014, 01:51 AM (This post was last modified: 08-17-2014 02:01 AM by isitmeor.)
Post: #293
RE:
@[b]anomus[/b]


f you need to remove from the7 theme the menu items portfolio, testimonial, team, partners, clients etc benefits photo albums slideshow just put this code to function.php of the theme:

add_action( ‘admin_menu’, ‘my_remove_menu_pages’ );
function my_remove_menu_pages() {
remove_menu_page(‘edit.php?post_type=dt_testimonials’);
remove_menu_page(‘edit.php?post_type=dt_portfolio’);
remove_menu_page(‘edit.php?post_type=dt_logos’);
remove_menu_page(‘edit.php?post_type=dt_team’);
remove_menu_page(‘edit.php?post_type=dt_benefits’);
remove_menu_page(‘edit.php?post_type=dt_gallery’);
remove_menu_page(‘edit.php?post_type=dt_slideshow’);
}
08-17-2014, 02:03 AM (This post was last modified: 08-17-2014 02:13 AM by anomus.)
Post: #294
RE:
isitmeor dosn't work Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\w6\wp-content\themes\xxx\functions.php on line 9

I puit this code into function.php of the theme at the begining

<?php


add_action( ‘admin_menu’, ‘my_remove_menu_pages’ );

function my_remove_menu_pages() {
remove_menu_page(‘edit.php?post_type=dt_testimonials’);
remove_menu_page(‘edit.php?post_type=dt_portfolio’);
remove_menu_page(‘edit.php?post_type=dt_logos’);
remove_menu_page(‘edit.php?post_type=dt_team’);
remove_menu_page(‘edit.php?post_type=dt_benefits’);
remove_menu_page(‘edit.php?post_type=dt_gallery’);
remove_menu_page(‘edit.php?post_type=dt_slideshow’);
}


?>
08-17-2014, 02:42 AM (This post was last modified: 08-17-2014 02:48 AM by isitmeor.)
Post: #295
RE:
(08-17-2014 02:03 AM)anomus Wrote:  isitmeor dosn't work Parse error: syntax error, unexpected '=' in C:\xampp\htdocs\w6\wp-content\themes\xxx\functions.php on line 9

I puit this code into function.php of the theme at the begining



add_action( ‘admin_menu’, ‘my_remove_menu_pages’ );

function my_remove_menu_pages() {
remove_menu_page(‘edit.php?post_type=dt_testimonials’);
remove_menu_page(‘edit.php?post_type=dt_portfolio’);
remove_menu_page(‘edit.php?post_type=dt_logos’);
remove_menu_page(‘edit.php?post_type=dt_team’);
remove_menu_page(‘edit.php?post_type=dt_benefits’);
remove_menu_page(‘edit.php?post_type=dt_gallery’);
remove_menu_page(‘edit.php?post_type=dt_slideshow’);
}


?>


add_action( 'admin_menu', 'my_remove_menu_pages', 999 );

function my_remove_menu_pages() {
remove_menu_page('edit.php?post_type=dt_benefits' );
remove_menu_page('edit.php?post_type=dt_testimonials' );
};


works for me
problem is the notation ' and not ´
67.gif
08-17-2014, 02:48 AM (This post was last modified: 08-17-2014 02:51 AM by anomus.)
Post: #296
RE:
True, now it works

add_action( 'admin_menu', 'my_remove_menu_pages', 999 );

function my_remove_menu_pages() {
remove_menu_page('edit.php?post_type=dt_benefits' );
remove_menu_page('edit.php?post_type=dt_testimonials' );
};

How can I remove theme options ?
08-17-2014, 02:49 AM (This post was last modified: 08-17-2014 03:03 AM by isitmeor.)
Post: #297
RE:
(08-17-2014 02:48 AM)anomus Wrote:  True, now it works

add_action( 'admin_menu', 'my_remove_menu_pages', 999 );

function my_remove_menu_pages() {
remove_menu_page('edit.php?post_type=dt_benefits' );
remove_menu_page('edit.php?post_type=dt_testimonials' );
};
now show me / us the result/site :)
08-17-2014, 03:24 AM
Post: #298
RE:
I have it on localhost, could you tell me how can I remove theme options ?
08-17-2014, 03:30 AM
Post: #299
RE:
(08-17-2014 03:24 AM)anomus Wrote:  I have it on localhost, could you tell me how can I remove theme options ?
you want me to design the theme aswell?
08-17-2014, 03:35 AM (This post was last modified: 08-17-2014 03:46 AM by anomus.)
Post: #300
RE:
:) no thank you just tell me how remove theme options that's it

Thank you in advance for your help ! U are the best !
73.gif




30.gif