CMS Development

MMainali
Participante

Child theme css changes not reflecting.

I don't use Design Manager very often and currently I am facing this issues with the child theme css. I cloned the css from parent theme which has same directory structure. I added the new Twitter X logo and I can see the changes with new logo in page edit mode but it is not rendered in published pages.

 

What am I missing here? I think the previous css files is not being replaced. Its been more than 24 hours and it is not working yet. 

11 Respuestas 11
MMainali
Participante

Child theme css changes not reflecting.

Hi @Jnix284 & @Kevin-C ,

I cloned the css file from parent theme to child theme. Only changes on the file is:

.fa-x-twitter:before {
content: "\e61b"
}

Screenshot 2023-09-22 at 1.40.49 PM.png

On and edit mode, you can see both the logo.

Screenshot 2023-09-22 at 1.41.21 PM.png

On the preview/live mode, the X logo is not showing.

Preview link

 

 

0 Me gusta
Jnix284
Miembro del salón de la fama

Child theme css changes not reflecting.

Hi @MMainali unfortunately the link you shared requires access to your HubSpot account to view. Do you have a public URL you can share?

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
MMainali
Participante

Child theme css changes not reflecting.

I am sorry for late resoponse as I was out of office.

Here is the public preview link: https://www.amlrightsource.com/contact-test-20230210?hs_preview=TNJeKFzV-109066915431

0 Me gusta
Jnix284
Miembro del salón de la fama

Child theme css changes not reflecting.

@MMainali no worries, thanks for the link!

 

The icon is there - it's just not visible:

Jnix284_0-1696257945848.png

Where have you added the definition for this class:

fa-x-twitter

 

I don't see it in the child.css, but it looks like you've overwritten other CSS files. 

 

It also looks like the theme is using FA v5, which doesn't include the Twitter X icon - which is free, but requires v6.4.2 (more on this limitation here).

 

The only thing I can't quite figure out is why it's showing in the editor at all, if the above is the reason, it wouldn't show in editor or preview.

 

Since you're using Clean theme, perhaps @HelpfulHero can provide further guidance.

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Me gusta
MMainali
Participante

Child theme css changes not reflecting.

In child theme, I have updated the fontawesome css file and added new fontawesome icon files too. It is showing perfect in preview mode. Just not showing in live site. I have attached the screenshots.

Screenshot 2023-10-03 at 5.05.18 PM.pngScreenshot 2023-10-03 at 5.04.28 PM.png

0 Me gusta
Kevin-C
Experto reconocido | Partner
Experto reconocido | Partner

Child theme css changes not reflecting.

Hey @MMainali 

Have you made sure to add or update the reference to the new CSS files in your template? The little things can easily get lost when facing troubles!

 

But as @Jnix284 said we will need a live URL to debug accurately.

 

Best

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
Jnix284
Miembro del salón de la fama

Child theme css changes not reflecting.

@MMainali happy to help - can you check the URL with these parameters at the end:

 

?hsDebug=true&hsCacheBuster=4878

 

If you still don't see the change reflected, there are a few things we can check in the child theme configuration.

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
AussieBob
Participante

Child theme css changes not reflecting.

I was pulling my hair out when not seeing changes reflected after publishing theme changes. I was certain it was a cache issue but could not find any reference to it easily. It took me a while to find this post with '?hsDebug=true&hsCacheBuster=4878'..... Surely this information should be easier to find?

0 Me gusta
Jnix284
Miembro del salón de la fama

Child theme css changes not reflecting.

Hi @AussieBob Here's the developer documentation for Debugging - it has the ?hsDebug info and this is the unofficial HubSpot Developer Chrome Extension built by members of the dev community that includes the debug and cache buster parameters to make it easy to generate for any of your pages.

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Me gusta
MMainali
Participante

Child theme css changes not reflecting.

@Jnix284 thank you so much for your reply.

I added provided parameters and I am still not able see the changes.

Although I can see the changes on edit mode.

Jnix284
Miembro del salón de la fama

Child theme css changes not reflecting.

Hi @MMainali it would be helpful if you can share the link with us, that would allow us to check the source code and determine why your CSS isn't apply.

 

Can you also share a screenshot of your CSS changes - or use the code block to paste it here?

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Me gusta