-
Author
-
December 18, 2013 at 17:55 #8521hughmParticipant
I am using the 3 column (one left and one right sidebar) page template for my Activity page. I would like to reformat the sidebars so that the main page and the right sidebar are equal widths.
Should I change the page-templates/left-right-sidebar.php file or is there a way to do this with code added to functions.php in my child theme?
Also, if I do alter the php file, I could use some direction on what “three column” and “six column” classes mean.
Thanks!December 19, 2013 at 00:51 #8530hughmParticipantI’d also be fine with just having the two sidebars and the main page equal widths.
December 20, 2013 at 14:55 #8611AbeKeymasterHi,
I don’t know in what combination of columns you can do that. Twelve in s number of columns a row can have. By default you have a column nine and a sidebar three which sums twelve.
or
two “three sidebar” plus six for main content equals also twelveYou should change the code to match your needs.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 21, 2013 at 18:54 #8656hughmParticipantI used a piece of code that you gave me to allow for the left and right sidebar format only on my buddypress activity page. I am now trying to change the column widths to 3 column for the left sidebar, 5 column for the main content, and 4 column for the right sidebar. I am missing the name of the class for the dynamic right sidebar. Could you help me to edit the code below with the missing class name?
/* Enable 3 column format of Activity page*/
add_action(‘wp_head’, ‘change_activity_tpl’);
function change_activity_tpl() {
if (is_page(‘dashboard’)) {
add_filter(‘kleo_sidebar_class’, create_function(”, ‘return “three”;’), 11);
add_filter(‘kleo_buddypress_content_class’, create_function(”, ‘return “five”;’));
add_filter(‘kleo_????_sidebar_class’, create_function(”, ‘return “four”;’), 11);
add_action(‘kleo_buddypress_before_content’, ‘kleo_sidebar’);
add_action(‘kleo_buddypress_after_content’, ‘kleo_extra_sidebar’);
}
}December 23, 2013 at 13:11 #8708AbeKeymasterExtra sidebar can;t be changed like that. In functions.php search for kleo_extra_sidebar and modify the class there
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.