Certain inline CSS visible only when logged in

Hi there, I’m working on a page which includes some custom HTML&CSS (inside “Text” elements). Some of this code disappears when viewing the website as a not-logged-in user.

For example, I have the following:
<div class="home-exp-img" style="background: url(https://homefosca.com/wp-content/uploads/2017/11/vela.png);"></div>

When I’m not logged in and I look at the website, this turns to:
<div class="home-exp-img"></div>

Another example is this code:
<div style=" width: 5rem; height: 4px; ackground: hsl(27, 100%, 70%); margin: 2rem auto 4rem auto;"></div>

When I’m not logged in, it turns into:
<div></div>

What is the reason for this?

Thanks

Hi There,

It could be the caching issue.

Would you mind turning off the cache plugins then check again?

Let us know how it goes!

Hi @thai,

All the cache has been cleared, I am confident that’s not the issue.

Hi,

Hey There,

Would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • Specific url of the page where we can see the issue

All the best!

Here’s the info you request (the error is on the homepage):

Hi There,

I have tried to login to your site and view your website, but I couldn’t as I’m getting the following error.

The connection has timed out

The server at homefosca.com is taking too long to respond.

    The site could be temporarily unavailable or too busy. Try again in a few moments.

Do you have any firewall or IP based restrictions enable? If so please disable, so that we can view your site.

Thanks!

Hi @mldarshana,

No I don’t have any restrictions or firewall enabled. I tried viewing the site through a VPN from various locations and it works fine. Could you try again?

HI again,

I was able to login, can you please try adding your content in Classic Raw Content element instead of Content Area?

Let us know how this goes!

Yes this fixed it :slight_smile: Thanks!

Glad it worked.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.