- This topic has 11 replies, 2 voices, and was last updated 5 years, 2 months ago by Leo.
-
AuthorPosts
-
February 5, 2019 at 1:20 pm #802454John MacKenzie
hi all almost there with the site, but having an issue with the footer bar. I want it to have
my text widget on the left, the copyright in the middle and the little 2 page navigation buttons on the right.
right now copyright goes left and everything else stacks on the right. I saw another support article about adding a hook in after footer content, but that doesnt fully work for me as i am adding in a navigation widget and it goes on a different line than the copyright?
i amay also try to get the language flag switcher in there too, but not sure yet.
thanks!
February 5, 2019 at 5:08 pm #802564LeoStaffCustomer SupportHi there,
We should be able to use some CSS for that.
Can you add them as 3 separate widgets in the order (from left to right) you want first?
Let me know π
February 5, 2019 at 5:40 pm #802574John MacKenzieHi Leo
i dont seem to have control of the copyright position since its not part of the widget, and the other 2 elements in my footer widget are in the order they should be, one on top of the other The top one should be left, copyright middle, and the green and brown nav to the right.
Thanks!
JFebruary 5, 2019 at 6:26 pm #802584LeoStaffCustomer SupportCan you add the copyright info as a text or HTML widget?
February 5, 2019 at 6:55 pm #802602John MacKenzieHi Leo
thanks i have but then my php code doesnt work, i ve done that for now so you can see, also if i clear out the other copyright the default one gets put back in there?
thanks
JohnFebruary 5, 2019 at 8:42 pm #802625LeoStaffCustomer SupportHmm little more complicated than I had hoped.
Try adding this PHP first to create the
[current_year]
shortcode:add_shortcode( 'current_year', 'lh_current_year' ); function lh_current_year() { ob_start(); echo date('Y'); return ob_get_clean(); }
Then you can create the copyright widget like this:
Β© [current_year]
Once you do that we should be able to use CSS to hide the default one and arrange the rest.
Let me know π
February 6, 2019 at 7:55 am #803125John MacKenzieok thanks, ive dont that
thanks for your help and let me know
February 6, 2019 at 9:24 am #803197LeoStaffCustomer SupportGive this a shot:
@media (min-width: 769px) { .footer-bar-align-right .footer-bar { float: none; } .footer-bar { display: -webkit-box; display: -ms-flexbox; display: flex; } aside#black-studio-tinymce-40 { margin-left: auto; margin-right: auto; } } @media (max-width: 768px) { .footer-bar { flex-direction: column; } }
February 6, 2019 at 4:12 pm #803484John MacKenziethanks leo thats looking great! really appreciate it.
only last issue is once we get below 768px its all squished and the widgets dont seem to “stack” like they should.
if you able to take a peek that would be awesome, thank you so much!
February 6, 2019 at 5:56 pm #803531LeoStaffCustomer SupportEdited the CSS above:
https://generatepress.com/forums/topic/footer-bar-multiple-widgets-how-to-align-them/#post-803197Let me know π
February 6, 2019 at 8:24 pm #803597John MacKenziethank you! you guys rock! i tell everyone abut your awesome theme and even more amazing support.
February 6, 2019 at 9:51 pm #803620LeoStaffCustomer SupportGlad you are enjoying GP and we’ve been helpful π
-
AuthorPosts
- You must be logged in to reply to this topic.