Welcome to the forum. If this is your first time you can browse around and see what you like. You will need to be registered in order to post!

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: 45
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 546 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

User avatar
Alizeh
USER_STATUS: Offline
Newbie
Newbie
Posts: 1
Joined: Wed Apr 03, 2019 10:44 pm

Re: Wordpress: Remove sidebar fixed in twentyfifteen

Post by Alizeh » Wed Apr 03, 2019 10:47 pm

I have used twentyfifteen theme when i started my web designing career. Now I have moved on paid wordpress themes.

User avatar
kachan64
USER_STATUS: Offline
Site Admin
Site Admin
Posts: 45
Joined: Sat Jul 01, 2017 9:35 pm
Contact:

Re: Wordpress: Remove sidebar fixed in twentyfifteen

Post by kachan64 » Fri Apr 05, 2019 9:48 pm

Alizeh wrote:
Wed Apr 03, 2019 10:47 pm
I have used twentyfifteen theme when i started my web designing career. Now I have moved on paid wordpress themes.
Nice.
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 0 guests

Topic Subscribers

1 user subscribed to this topic: kachan64