-
Author
-
May 10, 2018 at 19:31 #197382TheDream18Participant
Hi,
I create register page for buddypress , i already tested with each of solution bellow (tested one by one):
+ Choose template: Page full width, no sidebar
+ Choose template: full with for builder
+ Use css hidden sibar on register page-id-908 ==> sidebar hidden success, but leaved empty sidebar , register in the left , not in center when i already hidden sidebar
So what is the right solution?
Thanks
May 11, 2018 at 17:28 #197434RaduModeratorTry with this php code
COPY CODEfunction change_layout_on_register_page() { if (is_page('register')){ kleo_switch_layout('right'); } } add_action('init', 'change_layout_on_register_page');
Add it to child theme functions.php
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMay 11, 2018 at 21:05 #197460TheDream18ParticipantCode no work. “register” i tested both page name and slug name.
my currect register page id 967, templete full width, no sidebarMay 14, 2018 at 18:23 #197721RaduModeratorHi,
Check this one instead
COPY CODEfunction change_layout_on_register_page() { if (is_page('1222')){ kleo_switch_layout('full'); } } add_action('init', 'change_layout_on_register_page'); //add_action('after_setup_theme', 'change_layout_on_register_page'); //add_action('wp', 'change_layout_on_register_page');
Replace the 1222 with your page id ,if still not take any effect uncomment the lines with // one by one by testing any of the action hooks.
Make also sure to have child theme installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.