Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10799

    Hello all,

    I have something strange going on. On my homepage I have a intro text. The title of the page is Home but that is something that I don’t want. So I fount the page ID and in my CSS I added the code to dissable the post title just for that page/

    .page-id-82 .post-title{

    display:none;

    }

    But here is the strange thing. When I sign in through the login function of the woocommerce everyting is fine. But when I logout the post title is showing again. When I look at the code the page id of that page is gone.How come?

    Thanks Martijn

    #69446

    Hi Martijn,

    I’m really not sure what would cause that. Can you provide a link so I can look at the issue live?

    Thanks,

    Devin

    #69447

    Hi Devin,

    I have a coming soon page before it so I made a test account:

    dev.vonorangesup.com/wp-admin

    User:test

    Pass:test

    Thanks Martijn

    #69448

    Hi Martijn,

    I logged into the test account to see what may be happening. Now I didn’t have to logout to see the problem. Instead I found that when I go to http://dev.vonorangesup.com (or click on the logo) the “Home” title appears on the page but when I click on the “Home” menu on the footer I go to http://dev.vonorangesup.com/home/ which doesn’t have the “Home” title.

    The reason the page ID doesn’t work on http://dev.vonorangesup.com is because WordPress assigns the class name “home” to the frontpage (homepage) of a website. So you would need to add .home .post-title to your code above like this:

    .page-id-82 .post-title, .home .post-title{
    display:none;
    }

    I also suggest changing your footer link to point directly to http://dev.vonorangesup.com instead of http://dev.vonorangesup.com/home/ that way all Home links point to the same page. Right now it appears they’re pointing to two different pages.

    Regards,

    Mya

    #69450

    Thanks a lot!!

    Martijn

    #69451

    Hi Martijn,

    Good thing you solved the problem.

    Have a nice day.

    Regards,

    Ismael

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

The topic ‘Strange page behavior’ is closed to new replies.