• fernando1984

    (@fernando1984)


    [ Moved to the Fixing WordPress sub-forum. ]

    Hi there! Im starting creating my own themes and one the themes I’ve created, looks like some of the normal functionality of things happen to some of types of pages from wordpress while in others not. So I made my web site, and it has this button for client acesss and it works in some pages within the theme, not all pages even having the same header, the button and link in the header gets disabled, inactive. Could some please give some help about this issue. What might be the problem Im having?

    Here is the link,
    Home page the header with link works fine www.rochacontabilidade.com.br Services About or any other page they dont work. www.rochacontabilidade.com.br/servicos/

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to clear your floats.

    See this screenshot: https://cloudup.com/cyhb9tNVANX

    See how I’m selecting the .container-servicos-content div, but the blue highlight is covering up the entire header as well?

    This can be fixed by adding the following CSS code to the Servi?os page:

    .container-servicos-content { clear: both; }

    However, it looks like you have a unique class on each of these page header sections on different pages.

    For example, the above code would not work on the “A Empresa” because that uses the .container-empresa class.

    You should try to use classes that can be re-used on different pages. For example, instead of using .container-empresa and .container-servicos-content you could use .page-header for all page headers, then just style that.

    You could also probably just not use float: left; in the header sections above. But the point is, if you’re going to use floats, they need to be cleared.

    Thread Starter fernando1984

    (@fernando1984)

    That seems to solve the problem. I didn’t notice the float, I guess I thought it was need to fix the image right below the header. I went ahead and fixed all the pages that were with the same problem.

    Now everything is working but I try then to solve another problem that was the positioning I was making for heading within the image for the description of the page.

    I changed from position relative value to the use of the bootstraps grid to line up properly but now I dont know what happen to this page www.rochacontabilidade.com.br/fale-conosco/

    I have already started using a class=”container” for all other pages but it doesn’t show it, in the dev tools when I inspect.

    But thank you so much for helping so far, I finally beeing be able to find out why those links were not working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The page.php not working properly’ is closed to new replies.