Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Profile Privacy…

  • Avatar of Quint
    Quint
    Participant

    @qrahaman

    Hello @modemlooper,

    I would like to add a class to the item-nav div but I can’t seem to find the file? Is it home.php? I am using the template pack and I’ve replaced the members/single/home.php with your file (per the instructions). If I add a class within that file for that div, nothing changes on the front-end. I must be pointing to the wrong file. Can you tell me where I might be going wrong? Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Not sure how this applies to privacy but what nav are you trying to add CSS to?

    Avatar of @shawn38
    Anonymous

    Its a plugin @modemlooper made and it works as specified with bp-default theme. It will work with other themes as well if your willing to put the time in to do it. I have learned that though it seamed people were unwilling to help me at one point they were actually trying to liberate me and I credit @rogercoathup for basically telling me to learn my way around the code. The people here are good folk but they also expect you to put time in and learn about the code and I highly respect that!

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @modemlooper,

    Thanks, never mind. I figured out how to apply the styling without mucking up the markup (wherever that may be…I didn’t provide a proper description in the earlier message…too early in the morning. Sorry about that.).
    @shawn38, thanks for the info. I agree with that approach. It’s what I do. When I ask a question here, it’s because I’ve exhausted all of my sources or it just doesn’t click.

    Avatar of @shawn38
    Anonymous

    @qrahaman That is a a good policy to follow and I am glad you found a solution. If you would post the solution after you resolved it, it could potentially help the other users in the community that encounters the same issue. Thanks and good luck!

    Avatar of @shawn38
    Anonymous

    I can make a plugin that can resolve this issue for end-users but its really not detrimental or overly complicate to do anyway. But for the sake of resolving this issue in the future it would be a good idea for me or someone else to make a plugin I guess. I will do it if my time permits it.

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    In this case, it was me not realizing that the div I was interested in styling had enough id and classes on that page to target the element appropriately.

    On another note, what would be sweet is an app that would run through your site’s css to identify all the redundant css across all of the pages and offer up a way to consolidate. Dream on… ;-)

    Avatar of @shawn38
    Anonymous

    @qrahaman isn’t that sorta what the plugin W3 total cache or just minifying your CSS kinda does to a degree anyway? If so then its already kinda been done handily and there is no point in reinventing the wheel! Just saying!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    You can target any element on a page even without CSS id or class. People have just gotten used to the easy way with adding a class to every element.

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @modemlooper,

    Well, I’m gonna bite big on that one. How in the world is that done? Are you referring to the proper use of the tags in HTML5?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Avatar of Quint
    Quint
    Participant

    @qrahaman

    @modemlooper,

    Thanks. I had no idea this was possible. Great add to the toolbox.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    it’s easier to just use id and classes but sometimes when there is dynamically generated markup that has no id or class you can target an element using selectors.

    Also, if you ever spot an element in the BP code that does not have an id, please post it on trac so it can get a fix.

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @modemlooper — the fix would be to get rid of most of those classes that BP adds, not create more!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    removed class, your right, easy to target children. I have seen some stray `

    ` no id before.
Viewing 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.