Site logo

Archived topic

How to add this type of design

5 replies · Started by Shivam on April 3, 2019

Viewing posts 1–6 of 6

Hi there,

you could use the Hook Element:

https://docs.generatepress.com/article/hooks-element-overview/

use the before_footer hook. And set your display rules to where you want it displayed.

Use some HTML like this:

<div class="footer-cta">
    <div class="footer-cta-inner grid-container">
        <span>
            My call to action text
        </span>
        <a class="button" href="#">Get started</a>
    </div>
</div>

And add some CSS for styling:

.footer-cta {
	background-color: red;
	padding: 15px 0;
}
.footer-cta-inner {
	display: flex;
	justify-content: center;
	align-items: center;
}
.footer-cta-inner span {
	margin-right: 20px;
	font-weight: 700;
	color: #fff;
}

wow it worked i also wanted to add that rocket image and change the button roundness.

You can add this to give the button rounded corners and similar style to the others:

.footer-cta a.button {
    border-radius: 200px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 8px 38px -17px;
}

For the image you will need to add the HTML for that after the tag in the above HTML.

This archived topic is closed to new replies.