Site logo

Archived topic

HTML tags do not appear after saving a header post(content).

6 replies · Started by Omri on November 20, 2017

Viewing posts 1–7 of 7

Hi Tom,

I’ve created a page header on this page: https://cybrain.co.il/%D7%9E%D7%A2%D7%91%D7%93%D7%95%D7%AA/

current content looks like this:

<html>
<h1>Hack Your Career Now</span></strong></h1>

<style>

.button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 80px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    cursor: pointer;
}

.button1 {
    background-color: #181818; 
    color: #5cd59e; 
    border: 2px solid #283833;
    padding: 15px 88px;
    border-radius: 4px;
}

.button1:hover {
    background-color: #2aa9d7;
    color: white;
}

.button2 {
    background-color: #283833; 
    color: #5cd59e; 
    border: 2px solid #283833;
    padding: 15px 80px;
    border-radius: 4px;
}

.button2:hover {
    background-color: #2aa9d7;
    color: white;
}

</style>

<body>
<button class="button button1">details</button >
<button class="button button2">whay us  </button>
</body>

</html>

The problem is that after I save the header post - the html tags inside the content disappear.
That's why I see a garbled display in the header.

?

Hi there,

I don't see a page header on that page?

All the content are from Elementor currently.

OK. I working with "Simple CSS".
Let's say the name of the post header is "header1" and the wordpress page name is "Labs" -
How do I associate the CSS (found above) with my specific page? ?

If you are using Simple CSS, it gives you a CSS meta box for each page so the CSS in there are on page specific.

This archived topic is closed to new replies.