• Resolved alonperel

    (@alonperel)


    Hi,

    I am using the Graphy theme. I worked a lot to make the navigation-panel menu items into buttons, but I have a problem with the “home” button. The code I added into the style.css is this:

    .current_page_item {
    -webkit-border-radius: 20;
    -moz-border-radius: 20;
    border-radius: 20px;
    -webkit-box-shadow: 1px 1px 3px #000000;
    -moz-box-shadow: 1px 1px 3px #000000;
    box-shadow: 1px 1px 3px #000000;
    font-family: Georgia;
    color: #254a1c;
    font-size: 20px;
    padding: 1px 10px 1px 10px;
    background: #ffffff;
    text-decoration: none;
    border: solid #ffffff 1px;
    margin: 7px;
    }
    .current_page_item:hover {
    border: solid #000000 1px;
    }

    It appears just fine on the main page, but once you click a different page, the style is forgotten. Using the “inspect” thingy in chrome, I noticed that on the “homepage” it has a “class”, while if a button is pressed it is just a link, and has no class.

    The website is

    http://www.integra.care

    Please advise.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looking through your page, I realize that your Home button is missing the “page_item” class. If you give it that class, it will maintain the style you want.

    Thread Starter alonperel

    (@alonperel)

    Umm, how do I do that? :). I googled but couldn’t find.

    Thread Starter alonperel

    (@alonperel)

    Hi! I MADE IT WORK! But… I don’t like how I made it work… I went to “menus” and there I had a huge array of pages/home page” – and the home page had no class, as you say. but all the pages had different classes that I played with before while trying to figure out how to make buttons out of the text. Well, buittons looking like text. ANYWAY, on the “manage locations” in menus… I then made “primary menu” into “menu1” which I just made.

    BUT – before that, everything worked without me creating/using those menus. Everything besides that “homepage” link thingy… It bothers me. Is there no way to not use that menu thingy and still assign a class to the “homepage”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Home button loses "class" when a page is clicked. Css style affected’ is closed to new replies.