- This topic is empty.
-
AuthorPosts
-
November 21, 2016 at 6:28 am #248064
BiggerThanLimits
ParticipantHi,
I’m using child theme of Activello theme: https://colorlib.com/activello/
My website: http://www.biggerthanlimits.com
I added footer manually but there seem to be a problem with its responsiveness. It’s partly responsive but in mobile/tablets etc. view there’s additional width to the right and the footer is placed to the left (in some cases two parts are next to each other and the third part goes down).
Also, when I change the layout of the site or post it goes straight to the sidebar instead to stick to the bottom.
To add footer I used codes from here: https://www.tipsandtricks-hq.com/how-to-add-widgets-to-wordpress-themes-footer-1033
IS there any way to fix it and make it fully responsive? The rest of the site works well.
I would be REALLY grateful for help.
Hope you’re all having a good day.
Anna
November 21, 2016 at 5:03 pm #248082I.m.learning
ParticipantYou have your footer placed outside the html and body tags. That fix will probably not fix all your errors. Maybe place your styles (which some appear repeated) inside the head tags.
I would have to review my code and yours, but you may not be accurately be linking bootstrap.
I used “view-source:” in my Chrome mobile browser to view your code, so it just be my view.
November 22, 2016 at 2:16 am #248092Beverleyh
ParticipantIS there any way to fix it and make it fully responsive?
Quickly looking at the CSS in the tutorial you linked to, its all based on fixed width units (px).
Steps to make it responsive;
- convert to fluid units (e.g. %)
- make use of media queries to adjust layout at desired breakpoints
November 23, 2016 at 1:02 pm #248179BiggerThanLimits
ParticipantI’ve tried media queries but it didn’t really help. Those are my codes:
<?php
if(is_active_sidebar(‘footer-sidebar-1’)){
dynamic_sidebar(‘footer-sidebar-1’);
}
?><?php
if(is_active_sidebar(‘footer-sidebar-2’)){
dynamic_sidebar(‘footer-sidebar-2’);
}
?><?php
if(is_active_sidebar(‘footer-sidebar-3’)){
dynamic_sidebar(‘footer-sidebar-3’);
}
?></footer> <!– #colophon –>
<!– #page –>
<?php wp_footer(); ?>
</body>
</html>div class= “my-copyright”>COPYRIGHT © 2016 BIGGER THAN LIMITS – ALL RIGHTS RESERVED div>
and CSS:
#footer-sidebar {
border-top: 1px solid #dedede;
margin-top: 90px;
display:table;
height: 250px;
padding: 10px 0 10px 0;}
#footer-sidebar1 {
float: left;
width: 340px;
margin-left:5px;
margin-right:5px;}
#footer-sidebar2 {
float: left;
width: 340px;
margin-left:5px;
margin-right:5px;
}#footer-sidebar3 {
float: left;
width: 340px;
margin-left: 5px;
margin-right:5px;
}.my-copyright {
width: 100%
float: bottom;
font-size: 70%;
text-align: center;
margin-right: 3%;
margin-bottom: 10px;
}November 23, 2016 at 1:53 pm #248180Beverleyh
ParticipantSorry, I’m not familiar with WordPress. But again, focusing on the CSS only, the
width
properties in the code provided have fixed/absolute pixel units (px). Changing them to fluid/relative units, such as percentages, will help to create a flexible and responsive layout.November 23, 2016 at 1:56 pm #248182BiggerThanLimits
ParticipantI’ve tried that but then in mobile view three footer sidebars appear next to each other and are really small you can’t actually see what’s in there.
I’ll try some more. Thank you for your reply :)
November 23, 2016 at 2:28 pm #248186Beverleyh
ParticipantI’ve tried that but then in mobile view three footer sidebars appear next to each other and are really small you can’t actually see what’s in there.
Yes, and at that stage you’d use a media query to change the layout properties further, maybe by removing the floats and increasing the panel widths to 100% so that they sit vertically on top of each other.
November 23, 2016 at 6:29 pm #248187I.m.learning
ParticipantNovember 24, 2016 at 12:58 am #248188roykfahey
ParticipantI too suffering from this same problem
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.