customize header and menu button problem
-
i am using socialchef theme.
i want to create 2different menu buttons in the header.
one for logged in users. and one for NOT logged in users.
here is my default header look like.
https://uupload.ir/files/65gv_true_header.jpg
and here are the codes for those 3 buttons.
https://uupload.ir/files/eit3_true_code.jpgi want to create a situation, where if a user is logged in
those 3buttons appear as “search for recipe”, “my account”, “submit a recipe”.and if a user is NOT logged in, those 3 buttons appear as
“search for recipe” , “LOG IN” , submit a recipeso i used if ( is_user_logged_in() ) to know that if a user us logged in or not. and changed the codes and added an
if ( is_user_logged_in() )
{…}
else
{…}take a look at the changes i added to default code here:
https://uupload.ir/files/beo_changed_code_of_header_caused_error.jpg
and the results look like this:
1) https://uupload.ir/files/zx2t_error_header_1_-_zoomed_out.jpg
2) https://uupload.ir/files/irj4_error_header_1_-_more_zoomed_out.jpg
as you see the menu repeated it self!how can i fix that error and make my changes? tnx for help.
- The topic ‘customize header and menu button problem’ is closed to new replies.