- This topic has 19 replies, 4 voices, and was last updated 4 years, 1 month ago by
David.
-
AuthorPosts
-
February 15, 2019 at 8:33 pm #811721
Katharina
Hi I need some help,
This is a screenshot from another website I have https://paste.pics/5a74bf28b52de923bbfa3cf780ebe631
I would like to recreate something close to it.1) How can I add a Opt-In Form (Mail-Chimp) below the Header (properly using the Hook function) I tried a few things but nothing worked. I did run out of Ideas.
2) I also would like to have a Bar with Logos of companies I work with below the Optin form
Can I create it without using a page builder or what would be the best option for me?
Thanks
KatiGP Premium 1.7.7February 16, 2019 at 7:01 am #812060David
StaffCustomer SupportHi there,
1. Add this to the Hook Element with the correct shortcode for your optin widget:
<div class="custom-container"> <div class="grid-container"> [your-optin-shorcode] </div> </div>
Select the
after_header
hook.
Check the execute shortcodes box.
Set the Priority to15
Set your display rules.2. If your comfortable with some HTML you could try this. Create another hook the same as above. Won’t need to check shortcode and up the priority to
20
. Then some HTML for the content:<div class="custom-container"> <div class="grid-container flex-grid"> <img src="full-url-to-logo" alt="logo-alt-text" height="60" width="60"> <img src="full-url-to-logo" alt="logo-alt-text" height="60" width="60"> <img src="full-url-to-logo" alt="logo-alt-text" height="60" width="60"> <img src="full-url-to-logo" alt="logo-alt-text" height="60" width="60"> </div> </div>
Then this CSS:
.custom-container { background-color: #ddd; /* change color of container */ } @media (min-width: 768px) { .flex-grid { display: flex; justify-content: space-between; } }
Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 16, 2019 at 9:18 pm #812460Katharina
Thanks I will try it. And let you know how it worked.
February 17, 2019 at 4:45 am #812620David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 18, 2019 at 2:10 am #813314Katharina
I did try the bar below the header. And it works but the logos are stretched even after they set to height=”50″ width=”50″
After I set the display: flex; for the container to display: 100px; It went back to normal size but the logos are still different sizes and I also added a text before the logos that is not showing.
How can I center the logos and spread them apart little bit.
Thanks
February 18, 2019 at 2:23 am #813323Katharina
After I added the Optin form below the Hero, the Bar with the logos lost the container etc.
I think something is still not right.
February 18, 2019 at 5:36 am #813432David
StaffCustomer SupportSo, the custom-optin-container is missing a closing
</div>
– below you can see the last line i have commented, that is missing so just need to add that in:<div class="custom-optin-container"> <div class="grid-container"> <h6>kostenfreier</h6> <h2>MISSIONSBRIEF</h2> <a style="text-align: center;" class="button basic" href="https://donorbox.org/ak-missionfamily">Spenden</a> </div> </div> <!-- missing closing DIV -->
Then replace your CSS with this:
.custom-optin-container { background-color: #565656; /* change color of container */ color: #ffffff; } .custom-container { background-color: #3f3f3f; /* change color of container */ color: #ffffff; } .custom-optin-container, .custom-container { padding: 30px 0; /* Adjust left hand units for top and bottom padding */ } @media (min-width: 768px) { .flex-grid { display: flex; justify-content: space-between; align-items: center; } .custom-container .grid-container h2 { margin-bottom: 0; } } .custom-container .grid-container:before { display: none; } .custom-container .grid-container img { height: 50px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 21, 2019 at 11:53 am #816911Grant
Hello,
Adding to this thread as I would like to do something similar but I just want to add a simple opt-in bar with social media icons (Facebook, Twitter, email and importantly, WhatsApp).
Basically, just a blue bar at the bottom of the screen that scrolls as the user does and links to social media accounts/ another URL when the user clicks icons.
I gather I could use some of the above code but I would appreciate it if you could offer me something more specific.
Thanks,
Grant
February 21, 2019 at 1:01 pm #816974David
StaffCustomer SupportHi Grant
would you mind raising a new topic, we can then provide you with 100% focus.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 21, 2019 at 1:26 pm #816988Grant
Sure, will do.
February 21, 2019 at 1:28 pm #816990David
StaffCustomer SupportThanks
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 21, 2019 at 8:02 pm #817167Katharina
Thanks David for your support, It’s looking like I want it.
I want to add another bar only on my homepage:
It’ similar to my Bar with the logos https://paste.pics/4734f0d473c594de1b66bf6ab498a8fbCan I keep the CSS for the logo bar or do I need to change it?
-I would like to have 3 sections that are divided through different colors or similar.
-It would be good if it would be justified over the whole width.
-I want to add 3 success points with maybe an icon next to them.Thanks again for your help
February 22, 2019 at 4:06 am #817410David
StaffCustomer SupportAny chance you can send another temporary login. I can then tweak the current CSS so it can be used as a ‘framework’ for you to do both things with it.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 22, 2019 at 5:20 pm #818269Katharina
Thanks David I extended your link for another month, but i will also send the link again through the Account Issue Form.
February 23, 2019 at 9:24 am #818954Tom
Lead DeveloperLead DeveloperHi there,
I assume we’re targeting the custom-success-container?
If so, you’ll first want to remove the
grid-container
class for that container in the Hook.Then add this CSS:
.custom-success-container .flex-grid > * { width: 33.3333%; text-align: center; margin: 0; padding: 40px; } .custom-success-container .flex-grid > *:nth-child(1) { background: #222; } .custom-success-container .flex-grid > *:nth-child(2) { background: #000; } .custom-success-container .flex-grid > *:nth-child(3) { background: #222; } @media (max-width: 768px) { .custom-success-container .flex-grid > * { width: 100%; } }
Then you can adjust the 3 background colors as needed.
The icons should be able to be added directly in the hook next to the text of each item.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.