Join our community and talk about tech, gaming, get support for computer problems and even sale your own product.
Considering supporting us by subscribing.

Wordpress: Remove sidebar fixed in twentyfifteen

Wanted to know more about how to improve your site? Ask here!
Post Reply
User avatar
kachan64
USER_STATUS: Offline
Site Admin
Site Admin
Posts: 35
Joined: Sat Jul 01, 2017 9:35 pm
Contact:

Wordpress: Remove sidebar fixed in twentyfifteen

Post by kachan64 » Fri Dec 21, 2018 1:44 pm

If you ever used twentyfifteen, is a very nice theme (is free) that comes with WordPress installs. Default layout was sidebar on the left and content & footer on the right. However, I actually moved the footer on the bottom of the entire site and noticing that sidebar was overlapping the footer.

Did some inspect element only to found out that position fixed was somewhat added during theme load. After searching on Google there was nothing. So I dugged up the Github repo for twentyfifteen and searched position: fixed sidebar only to found out it was quietly loaded within functions.js file.

Code: Select all

$sidebar.attr( 'style', 'position: fixed;' );
script js.png
script js.png (13.92 KiB) Viewed 60 times
Apparently removing on 3 lines containing the code above and refresh the js file actually does make the sidebar none fixed again! :jumpingjacks:
Image
PC: Custom Built Gaming PC
Monitor: Samsung S24D390H, Asus VE248H

Post Reply

Return to “Web Design Section”

Who is online

Users browsing this forum: No registered users and 1 guest

Topic Subscribers

1 user subscribed to this topic: kachan64