webbersky
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesForum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesI don’t think there is any other way, you may be able to edit your post after though.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesNot sure without being able to see it, try inspecting the element and seeing where the CSS style is coming from.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesI don’t know the URL for your website @tebmedia
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesFollow this post:
https://www.ads-software.com/support/topic/nisarg-how-to-remove-sidebar-on-certain-pages/#post-8475344https://sherylsteines.com/wp-content/themes/nisarg/css/bootstrap.css?ver=4.7.2
@media (min-width: 992px)
.col-md-9 {
width: 75%;
}change to 100% or comment out
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesLatest WordPress has Custom CSS if you go on Customize, shouldn’t need plugin for it now.
And I can’t really check for you unless i know your site, but yes line numbers may have changed by now, but try search and replace what i’ve said in this thread.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesPost your website and I can take a look for you.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesPut this code (change domain.com to your domain)
<link rel=’stylesheet’ id=’nisarg-style-css’ href=’https://domain.com/wp-content/themes/nisarg/style2.css’ type=’text/css’ media=’all’ />after
get_header(); ?>Which will then load another stylesheet after the main ones so will overwrite the previous styles I believe.
Then create a file called style2.css
and add in your CSS code there.Not sure what you want to do exactly but if you want to make the main page part wider
set this (was 75%):@media (min-width: 992px) {
.col-md-9 {
width: 100%;
}
}This probably isn’t the best way of doing it as it loads the css file outside <head> tag but it appears to work.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg-How to remove sidebar on certain pagesCreate a new file called no-sidebar-page.php in /wp-content/themes/nisarg/
Copy the contents from /wp-content/themes/nisarg/page.php into no-sidebar-page.php
Then change this line:
<?php get_sidebar(‘sidebar-1’); ?>
to
<?php //get_sidebar(‘sidebar-1’); ?>and replace the commented code at the top (lines 2-11) with:
/*
* Template Name: No Sidebar Page
*/Then select your Page on wp-admin and under Page Attributes, you will have option to choose your page Template, so you can select the pages you don’t want to have a sidebar.
Hope this helps ??
Forum: Themes and Templates
In reply to: [Nisarg] Full page width please@onitamo, on line 299, on your home page you have an extra ” –>”
Which file this is in, i’m not sure, maybe your header.php or page.php or something similiar, most likely one you edited.@mirkamp, You can always re download the original theme template, and compare the files using an online file comparison website with your version against the original and see where it was put, usually for best practice you can comment out the code instead of deleting leaving it in it’s place using <!–html–> or // for php.
And yes the position in the file does usually matter.Forum: Themes and Templates
In reply to: [Nisarg] Nisarg remove sidebarYou can use the PHP
is_front_page
for determining whether the page is the home page.Forum: Themes and Templates
In reply to: [Nisarg] Nisarg remove sidebarI’m not sure about that, you’ll have to look into the style.css when it’s max-width is mobile size.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg remove sidebarAh didn’t notice that, try this:
bootstrap line 4280
margin-right: 15%;
margin-left: 15%;Or change to what percentage you like best.
Forum: Plugins
In reply to: [Arconix Shortcodes] Tab errorThanks that worked.
Although you could use this – https://cdnjs.cloudflare.com/ajax/libs/jquery-tools/1.2.7/jquery.tools.min.jsfrom https://cdnjs.com/libraries/jquery-tools
I’m not sure it’s the same though, if it is, you could replace it with this so it can be loaded via http or https.
Forum: Themes and Templates
In reply to: [Nisarg] Nisarg remove sidebarbootstrap.css line 1596
@media (min-width: 992px)
.container {
width: 100%;
}and line 1613
/* padding-right: 15px; */
/* padding-left: 15px; */
}remove these 2