Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Support request] HTML tags do not appear after saving a header post(content).

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

  • This topic has 6 replies, 2 voices, and was last updated 3 years ago by Leo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #428768
    Omri

    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.

    GP Premium 1.5.4
    #429605
    Omri

    ?

    #429793
    Leo
    Staff
    Customer Support

    Hi there,

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

    All the content are from Elementor currently.

    #430023
    Omri
    #430101
    Leo
    Staff
    Customer Support

    Page header only accepts HTML, not CSS.

    You don’t need to add <HTML> tag to start with either.

    For adding CSS: https://docs.generatepress.com/article/adding-css/

    #430450
    Omri

    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? ?

    #430699
    Leo
    Staff
    Customer Support

    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.

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