-
AuthorPosts
-
July 7, 2024 at 10:46 am #1461527
Hi,
i added a menue in the menue settings for the socket.
How can i set it to the left side of the socket and have the copyright next to it?
kind regards
JakJuly 7, 2024 at 12:36 pm #1461532Hey Jak73,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#socket > .container { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeJuly 7, 2024 at 1:32 pm #1461535This reply has been marked as private.July 7, 2024 at 2:03 pm #1461537Hi,
Your screenshot looks like the socket is full width, but your site is smaller, so I recommend making the area full width and making the font smaller so there is enough room..responsive #socket > .container { max-width: 100%; font-size: 18px; } #socket .copyright { float: right; padding-left: 20px; line-height: 24px; }
and then move the “title” on the right side over some in the css for it, currently you have:
#footer-title { font-size: 38px; font-family: zen-kaku-gothic-new; color: #000; font-weight: bold; float: right; top: -38px; position: relative; left: -15%; }
change to:
#footer-title { font-size: 38px; font-family: zen-kaku-gothic-new; color: #000; font-weight: bold; float: right; top: -38px; position: relative; left: -5%; }
Best regards,
MikeJuly 11, 2024 at 3:25 pm #1461856This reply has been marked as private.July 11, 2024 at 5:02 pm #1461859July 11, 2024 at 11:51 pm #1461882if you choose display : flex for a container – always think of all containers inside!
even a pseudo-container will follow this.maybe a :
#socket > .container:after { display: none }
will clarify things here.
PS : does it belong to the known page – with that name in the footer ?
i have some ideas to reach a better – userfriendly approach.
there is a nice hook in enfold placing a widget area after the footer : ava_after_footer_output
see footer sections here: https://consulting.webers-testseite.de/July 12, 2024 at 8:47 am #1461901put these two snippets inside your child-theme functions.php:
add_action('ava_after_footer_output', function() { echo '<div id="subsocket" class="container_wrap subsocket_color"><div class="container">'; echo !dynamic_sidebar('subsocket'); echo '</div></div>'; }); function subsocket_color_set($color_sets){ $color_sets['subsocket_color'] = 'Subsocket'; return $color_sets; } add_filter( 'avf_color_sets', 'subsocket_color_set', 999 );
after that go to your widgets and create a new widget area named: subsocket
the first snippet is to have a new widget area – the second snippet is for having your own color styles for that area by enfold options.
Inside the new widget area you can have all widget you like to have.
to have less height and paddings etc. just a little css:
#subsocket > .container, #subsocket .widget { padding: 0; } #subsocket p { margin: 0; } #subsocket .av-special-heading { margin: 10px auto; }
for changing the position of copyright info and footer menue – the idea of Mike is perfect:
#socket .container { display: flex; flex-flow: row-reverse wrap; justify-content: space-between; } #socket .container::after { display: none; } #socket .sub_menu_socket { display: flex; align-items: center; } @media only screen and (max-width:767px) { #socket .container { flex-direction: column; align-items: center; } #socket .container > * { display: inline-block; width: unset !important; } }
July 12, 2024 at 4:31 pm #1461937Hi Guenni,
yes that’s right, same page.
I’ll try that. Thank you!
kind regards JakJuly 12, 2024 at 7:22 pm #1461952yes – or if you like to have on responsvie case first the menue then the copyright info use instead as media query:
@media only screen and (max-width:767px) { #socket .container { flex-flow: column-reverse wrap; align-items: center; } #socket .container > * { display: inline-block; width: unset !important; } }
-
AuthorPosts
- You must be logged in to reply to this topic.