Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   HOWTO: create a 'no sidebar' template (or 1, 2, 3 or 4 sidebar template) ????? (http://forum.bytesforall.com/showthread.php?t=22996)

mrspudgun Jan 8, 2015 07:53 AM

HOWTO: create a 'no sidebar' template (or 1, 2, 3 or 4 sidebar template) ?????
 
Hi there all,

I have been a member here for a while now under a different name but could not post for some reason so have made a new account, i have been using ata for a year and a half in my current project, now the reason for the title name of this post is because why is this kept away from view of regular users?

The reason i say this is because i refare back to this previous post another member made at this link
http://forum.bytesforall.com/showthread.php?t=15058

Now if you read that link you will see the reply with a link to the question being solved that is not viewable by regular members? I have searched everywhere for the answer to this question, but cannot find it anywhere.

I am fully aware that you can turn off sidebars etc etc for specific pages (i use 3 active sidebars on most pages) but i am using a plugin that requires me to add a function to my functions.php which uses the index.php as the template otherwise the plugin will not format and work correctly so turning sidebars off on this plugins pages are not working and are still showing all 3 of the sidebars that should be deactivated.

Now the way around this for me is to create my own custom template with only 1 sidebar active for the pages that the plugin uses and force the plugin to use this template via functions.php, but now you can see my problem because if i was using an old version of ata i could use the code that the guy was using in the post i linked to above, but as you can see i cannot because that way of doing it no longer works and the answer to this question is hidden from regular users, so do i really have to become a gold member to see this answer ??? if it was any other theme there would be an easy way to create this template but as we all know ata does things a little differently (but brilliantly may i add).

So can anyone help me out with this i just need to create a damn template that uses only 1 of my sidebars? i have spent nearly 1 and a half years developing this website with ata that has been a massive task to create in terms of what my website does and offers, only to find that i need this template issue solving before i can finish and finally launch my website. thx

juggledad Jan 8, 2015 08:57 AM

The thread you refer to is in the gold forums which are available to members who have donated $20 or more. It and other hints/tips are provided as extra benefits for them. There is also a diamond forum for members that have donated $100 or more

mrspudgun Jan 8, 2015 09:42 AM

Quote:

Originally Posted by juggledad (Post 111210)
The thread you refer to is in the gold forums which are available to members who have donated $20 or more. It and other hints/tips are provided as extra benefits for them. There is also a diamond forum for members that have donated $100 or more

Ty for your response juggledad but please dont slate or flame me for my response to you as im just trying to get my head around and clear this up, i have not come here to have a go at anyone etc etc, i am just being honest.

I love this theme and when i finally get my website up and running after over 3 thousand hours of work that has gone into it (yes i know your thinking what the heck has he been doing, and what is it he has actually been working on!) "all i can say its a very very ambitious project" i will definitely donate when i can.

So this is my other question to you, after visiting and using ata forums for all this time and not being able to post, then finally clearing it up on my other account via private messages with you about why i couldnt ,and then creating this new account so i could, your telling me that i need to donate to get any kind of help for the first question ive ever asked?

Now please dont get me wrong on this, but i see people asking questions all the time that are new with ata and these forums and get help and answers off other users, so just because im asking for help about something i need to do with my website and it seems the answer has been placed in the gold members forums i cannot receive any help on how to do this off anyone? even though there used to be a solution and help for this on older versions of ata without being a gold member! doesnt that then become more a case of only ask for help about something if you have sent us xxx amount of cash first?

Like i said above please dont slate me for being brutally honest, like i said i love this theme and appreciate all the work gone into it, i will 100 percent donate in the next few weeks (i cannot donate today or i would do) so now i have to wait and put all my work on hold until i can afford to donate because i cannot expect to ask for help on how to create a template with only 1 sidebar which i could easily do with any other theme but just cannot figure out with ata.

lmilesw Jan 8, 2015 01:08 PM

Just uncheck the show sidebar on all the pages in ATO and you will have a one sidebar "template".

mrspudgun Jan 8, 2015 01:28 PM

Quote:

Originally Posted by lmilesw (Post 111217)
Just uncheck the show sidebar on all the pages in ATO and you will have a one sidebar "template".

seriously? I take it you really did not read anything i have wrote above?

As i already stated above there is a reason why i need to create an independent template! i am 100 percent familiar with ata's options and what the options actually do and how the theme works, i did not ask how to turn the sidebar off for individual pages within the theme settings, if it was as simple as doing that i wouldnt be asking for help a year and a half into developing my theme with ata!

lmilesw Jan 8, 2015 03:02 PM

You're right... I skimmed through all you have written and wrote a quick answer. Sorry.

Quote:

Originally Posted by mrspudgun (Post 111218)
seriously? I take it you really did not read anything i have wrote above?

As i already stated above there is a reason why i need to create an independent template! i am 100 percent familiar with ata's options and what the options actually do and how the theme works, i did not ask how to turn the sidebar off for individual pages within the theme settings, if it was as simple as doing that i wouldnt be asking for help a year and a half into developing my theme with ata!


juggledad Jan 8, 2015 04:40 PM

Slate you?? I don't even know what that means. As I've said, we reward members who donate with hints and tips in the gold forum. If you want access you need to donate the $20.

If you donate $100 or more you become a diamond member and we give diamond members priority service.

mrspudgun Jan 9, 2015 03:44 AM

OK OK, I get the picture, I will have to donate for any help on this question, fool me for thinking i could come to the themes forum and ask for help with something i am stuck with huh! , Trust me to ask a question that can only be answered based on my user level. " I will donate in the next 2 weeks when i get paid and will have to wait".

btw the plugin that causes this problem with ATA and makes you need a separate template is quite a major plugin and widely used on the wordpress repository just so you know, the plugin is called rtmedia and when used alongside buddypress you will see the problem for yourself, firstly once installed you will notice the media tab does not work within a users profile on the members pages and it breaks the layout, but i will give you the solution here just incase anyone else on these forums gets stuck with this and needs help.

after installing rtmedia add this code to the bottom of ATA's functions.php (REMEMBER THIS WILL BE OVERWRITTEN ON ANY UPDATE THOUGH!)

//rtmedia fix for Atahualpa
function rtmedia_main_template_include($template, $new_rt_template) {
global $wp_query;
$wp_query->is_page = true;
return get_page_template();
}
add_filter('rtmedia_main_template_include', 'rtmedia_main_template_include', 20, 2);

so once you have added this code you will see that the tab now works because rtmedia now uses the index.php as its main template, now after doing this you will realize that if you have active sidebars on all your pages but have excluded them from showing on your members pages that they will not show on the members pages until you hit the media tab button, this is where the problem lies because of rtmedia calling the index.php file as its main template! Now you can understand the need for a separate template to match the rest of your members pages!

To do this you will need the information that i have been asking for (but cannot receive right now) then you can change the code in functions.php to call upon your new template by doing using this function instead

locate_template('your-custom-template.php') instead of the function get_page_template() used in the above code.

@juggledad and @lmilesw maybe you wanna go and check this out so you know exactly what im talking about as it will only take a few minutes to see on a fresh test install.

I have also found another problem with the latest Buddypress and the latest wordpress update with ATA but i will have to post it in another thread as it is totally off topic and i might actually get some help with this :)

juggledad Jan 9, 2015 04:45 AM

Quote:

after installing rtmedia add this code to the bottom of ATA's functions.php (REMEMBER THIS WILL BE OVERWRITTEN ON ANY UPDATE THOUGH!)
you could easily create a child theme for Atahualpa and add this code and it would not be overridden.

mrspudgun Jan 9, 2015 04:59 AM

yes i realize this juggledad as i usually do use child themes for all of my wordpress installs, but with ata and its import and export settings it really makes no difference to me as to repaste my added functions from my backups into atas functions.php after an update is 2 second job for me, i always update test everything locally first. saying that i will most probably create a child theme before this site goes live anyhows.

Plus im not a big fan of using the @import rule that child themes use, it is slow and much prefar loading my child themes using the wp_enqueue_style() function:


All times are GMT -6. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.