elementor icon indicating copy to clipboard operation
elementor copied to clipboard

Elemantor is broken with Custom HTML

Open KorayTugberk-g opened this issue 6 years ago • 2 comments

MY CODE wasn't this

<h3 class="main-link-header">Best Scooters for Adults</h3>
<p class="main-link-text">Scooters are a famously popular toy for teens, children, and adolescents
that love to ride around the neighborhood with their friends,
but what you might not know is that scooters are no longer
just popular toys.</p>
<a class="main-link" href="https://www.bestelectricscooter.best/best-electric-scooter-for-adults/"><strong>Best Electric Scooters for Adults</strong></a>

<style>
.main-link {<br />    transition: all ease-in-out 1s;<br />    color: white !important;<br />    background-color: #3e8e41;<br />    font-weight: 700;<br />    text-decoration:solid;<br />    padding: 20px;<br />    border-radius: 5px;<br />    margin-top: 5px;<br />}<br />.main-link:after{<br />    content:'→';<br />    margin-left: 3px;<br />    transition: all ease-in-out 1s;<br />    width: 100px;<br />    font-size: 20px;<br />}<br />.main-link:hover:after{<br />    content:'→';<br />    margin-left: 12px;<br />    font-weight: 700px;<br />    font-size: 21px;<br />}<br />.main-link:hover{<br />    text-decoration: none;<br />    background-color: blueviolet;<br />    border: 1px solid green;<br />    border: 2px solid blueviolet;<br />}<br /></style>

##ORIGINAL CODE ##

    <h3 class="main-link-header">
        Best Scooters for Adults</h3>
<p class="main-link-text">Scooters are a famously popular toy for teens, children, and adolescents 
that love to ride around the neighborhood with their friends, 
but what you might not know is that scooters are no longer 
just popular toys.</p>
<br><br>
<a class="main-link" href="https://www.bestelectricscooter.best/best-electric-scooter-for-adults/"><strong>Best Electric Scooter<strong></a>

<style> 
.main-link {
    transition: all ease-in-out 1s;
    color: white !important;
    background-color: #3e8e41;
    font-weight: 700;
    text-decoration:solid;
    padding: 20px;
    border-radius: 5px;
    margin-top: 5px;
}
.main-link:after{
    content:'→';
    margin-left: 3px;
    transition: all ease-in-out 1s;
    width: 100px;
    font-size: 20px;
}
.main-link:hover:after{
    content:'→';
    margin-left: 12px;
    font-weight: 700px;
    font-size: 21px;
}
.main-link:hover{
    text-decoration: none;
    background-color: blueviolet;
    border: 1px solid green;
    border: 2px solid blueviolet;
}
</style>

image This is the original image of the editor. image And this is the output.

Why is that? How can it be fixed?

KorayTugberk-g avatar May 08 '20 09:05 KorayTugberk-g

There are two widgets that output HTML - Wordpress's native "Custom HTML" widget, and Elementor's "HTML" widget.

Which of those did you use?

We have an organized template for opening issues. Please edit your post to follow the template so we can assist you.

udidol avatar May 10 '20 15:05 udidol

Closing for lack of activity,

Feel free to reopen if the issue persists.

Thanks.

elementorbot avatar Aug 07 '20 13:08 elementorbot