Custom Code on all pages

Posted in: Newsmag
Post count: 20

Hi,

i would like to add this custom code to all my pages (it’s snowflakes for christmas)

#snowflakeContainer {
    position: absolute;
    left: 0px;
    top: 0px;
}
.snowflake {
    padding-left: 15px;
    font-family: Cambria, Georgia, serif;
    font-size: 14px;
    line-height: 24px;
    position: fixed;
    color: #FFFFFF;
    user-select: none;
    z-index: 1000;
}
.snowflake:hover {
    cursor: default;
}

<div id="snowflakeContainer">
    <p class="snowflake">*</p>
</div>

<script src="https://erreur42.fr/fallingsnow_v6.js"></script>

I’ve tried to put this in header.php like As I was doing with my previous theme but it doesnt work 🙁

Thanks in advance !

Post count: 21

No need for Script on this.. Just head to Settings/General and at the bottom there is a tick box for winter snow “)

Enjoy.

Post count: 23312

Hello DarkStarzs,

All the custom CSS code should have been added in Custom Box area, from Theme panel, like this -> http://screencast.com/t/oGQu2iGG

Thanks for the message!

Post count: 20

Hi, thanks for the reply

I’ve added the CSS in the part but i need to put this

<div id="snowflakeContainer">
    <p class="snowflake">*</p>
</div>

<script src="https://erreur42.fr/fallingsnow_v6.js"></script>

in an HTML document, when i add this to “Custom HTML” field in the admin panel (https://puu.sh/sNXOq/418d1bceab.png) the snowflakes appear only under the footer (and make the page bug) : https://puu.sh/sNXRe/610eced6d1.png

Thanks !

PS: Thanks cloin1 for this tip (I had never heard of it :o) but i prefer my script ^^’

Post count: 23312

Hello DarkStarzs,

Unfortunately, I do not know what type of code you have added in this section and also, we cannot provide support for your additional customizations. Please notice that all you can say is that there you need to put the code. Regarding on code functionality, you should fix yourself because we cannot provide custom work at the moment, sorry!

Thanks for your understanding!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.