I am having issues adding a social banner to the webpages that were just brought over in a hubspot migration. The banner is just HTML and CSS. Before in earlier versions of the template the social banner worked. However, now with the fully migrated site, it no longer works. What is the issue I'm encountering? Is it in the coding of the pages or in the coding for the social banner itself?
Here is the code for the social banner that was working previously on the other template pages:
/* Fixed/sticky icon bar (vertically aligned 50% from the top of the screen) */ .icon-bar { position: fixed; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }
/* Style the icon bar links */ .icon-bar a { display: block; text-align: center; padding: 16px; transition: all 0.3s ease; color: white; font-size: 20px; }
/* Style the social media icons with color, if you want */ .icon-bar a:hover { background-color: #fff; }
I tested it on my site by creating a custom module with the code:
Then adding it to my template and it seemed to work (in my case it was behind something so I had to make a minor tweak using z-index, but you might not need to).
You can add the custom module to certain templates (you should be able to drag it anywhere) or add it to all templates by putting it in the header or footer global group.
If, when the code has been added, it's still not appearing, let us know and we can take another look.
My apologies, I took out the social banner from that page before, but now I put it back up. This page has multiple scrolable sections and even when I add it to the header it still doesn't show up. I played around with the z-index as well, but still no banner. Is it because of the layout of the page? Thank you again for the help.