Hi again
Okay, with <?php if (is_user_logged_in()){
echo “
I can add text and images to my theme, but I can’t find the menu! Which PHP file is it in? http://www.madsrosendahl.dk
WOW, I’ve actually solved this! For anyone with looking a solution for the same problem, here’s what you need:
<!-- HIDES MENU ITEM IF THE USER IS NOT LOGGED IN -->
<?php if (is_user_logged_in()){
echo "";}
else {
echo "<style type='text/css'>
.menu-item-58 {display:none;}
</style>";
};
?>
Sorry this is a bit late from the last post, but I wondered if this same code posted by madsrh123 could be changed to only show a page in the menu to a certain user role? Or dont show it to subscribers.
And where do you put this code?