Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • zorroh Friend
    #181144

    I want to remove content container in subpages?

    inspect element gives me
    * DIV.inner.content-inner.clearfix
    * DIV#container.wrap


    1. galleries-lens
    Sherlock Friend
    #468954

    Hi zorroh,

    If you want to hide the content area for a specific menu item you can create a page class dedicated for only that menu item.
    Go to back-end of that menu item, under the Page Display Options panel, you would see a field name Page Class enter there a custom class, For example you enter _test and then you open the file of templatesja_lenstemplate_tools.php looking this snap of code
    [PHP] if ($menu && $menu->params->get (‘jalens_display’)) {
    $cls .= ‘ fixed-display display-‘.$menu->params->get (‘jalens_display’);
    } [/PHP]

    You add right below it this code
    [PHP]
    if($menu && $menu->params->get(“pageclass_sfx”)){
    $cls .= ” “.$menu->params->get(“pageclass_sfx”);
    }

    [/PHP]

    Now you have a specific class name _test for a specific menu item, if you want to hide the content area for that menu item, open the templates/your_template/css/template.css and adding this css rule

    body._test #container{
    display:none !important;
    }

    Hope you got the ideal, let me know if it helps !

    zorroh Friend
    #468996

    Thank You! this is working! i was trying with similar like you have “body.”, but i didnt know about template_tools…

    Thank You a lot!:)

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

This topic contains 3 replies, has 2 voices, and was last updated by  zorroh 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum