This topic has 5 replies, 2 voices, and was last updated 11 years by hughm.

  • Author
  • #8521
     hughm
    Participant

    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!

    #8530
     hughm
    Participant

    I’d also be fine with just having the two sidebars and the main page equal widths.

    #8611
     Abe
    Keymaster

    Hi,
    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 twelve

    You 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.

    #8656
     hughm
    Participant

    I 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’);
    }
    }

    #8708
     Abe
    Keymaster

    Extra 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.

    #8738
     hughm
    Participant

    Thanks a lot. That works. I will just have to remember to make the change when I upgrade the theme.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?