Skip to:
Content
Pages
Categories
Search
Top
Bottom

Going full-width

Viewing 8 replies - 1 through 8 (of 8 total)

  • Hugo Ashmore
    Participant

    @hnla

    that’s the sidebar in members/single/home.php you could just try removing it or if you want to have it on some screens but not others you could wrap it in conditional check for the current page action. check the BP codex as you’ll find a lot of info there on how to achieve things like this and a list of the conditional tags you might use.


    meandering
    Participant

    @pataphor

    Hi Hugo:

    Thanks!

    That removed the sidebar, but it didn’t change the width.

    So I suppose I would have to remove the sidebar from all of the pages (not a problem), and change the overall width in the CSS somehow? : /


    Hugo Ashmore
    Participant

    @hnla

    Yep, CSS is what manages visual layouts in web development.

    If you remove the sidebars on a selective basis you can use the body classes to specify rulesets to overwrite existing ones, check the body classes when you are viewing a specific screen and you’ll see that they generate tokens according to the page view.


    meandering
    Participant

    @pataphor

    Thanks Hugo!

    So for members/single/home.php, I would alter the body class? I’m looking in the file but I’m not sure what to look for.

    I can always keep it the way it is, it still functions and looks okay. Pretty thrilled that it’s working, actually. Very thrilled, really.


    Hugo Ashmore
    Participant

    @hnla

    no not alter the body class , BP adds class tokens to the body class attribute to specify what screen your on so that you can write specific rules to target a particular page only.

    No good looking at the file things like body classes are parsed by php so you don’t see them until your browser requests a page and the server sends it , so you need to look at your browser source code view for a page to see those classes generated.


    meandering
    Participant

    @pataphor

    Thanks, Hugo. Any idea what I could alter, and how, to make it full-width on, say, member pages? : /


    Hugo Ashmore
    Participant

    @hnla

    All depends on the theme, look at the page browser view source or use firebug to see what classes are on the body tag then choose one specific to that page then you’ll do something like .someclass #content (width: auto;} just after the rule that is setting the width or margin you need to remove.


    @mercime
    Participant

    @mercime

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Going full-width’ is closed to new replies.
Skip to toolbar