Gallery Plugin Not Respecting Ata's Sidebar Settings
I've tested a number of gallery plugins for suitability for newbie users. The best one so far is gallery-plugin, but I've hit a snag.
The plugin uses custom templates to set up a page to list all site galleries and another for the individual gallery pages. These template files do not use Ata's sidebar settings, but rather install some default sidebar items (Search Pages Archives Categories Meta). This makes for a mess with the wrong items plus the sidebar gets forced to the bottom of the page. You can see the situation at http://www.birding4u.com/galleries/ The gallery template has only this in it to produce the sidebar: <?php get_sidebar(); ?> I may just delete that line and have no sidebar on the gallery pages, but i would prefer to be able to have a sidebar and control its contents. If I knew where those sidebar items (Search Pages Archives Categories Meta).were being specified I could change the code to what I want. Do you know, or have a different suggestion? Lane |
Those look like the default sidebar contents when no widgets are installed. What is it you want to do (EG What do you want your page to look like)?
|
Quote:
Ideally, I would like my selected widgets to be displayed on the gallery pages, as they are on all other pages, and they would be displayed at the side rather than at the bottom. Plan B would be to be able to manually code what I want in the sidebar (like we used to do in olden times). With other themes, this would be coded in sidebar.php, but it seems Ata has no such file. Is there a file in Ata which serves the same purpose? Lane |
The left sidebars are built in header.php and thr right ones are built in footer.php
|
Quote:
Lane |
Quote:
As far as putting info in the sidebar why not just use a widget for what you want? Also coding the theme files won't survive a theme upgrade so you will have to document what you do and re-do the edits if you do decide to upgrade. This is something I don't get involved in as I deal with quite a few sites. |
Quote:
Quote:
I've gone ahead and removed from the gallery template files the code <?php get_sidebar(); ?> and that at least gets rid of all the junk I don't want there. Maybe some day I'll figure out how to put there what I want. I appreciate all the information and suggestions in this thread. Lane |
You need to edit the two gallery templact files
for gallery-single-template.php change the first line from HTML Code:
<?php get_header(); ?> HTML Code:
<?php HTML Code:
<?php get_header(); ?> HTML Code:
<?php HTML Code:
<?php get_sidebar(); ?> |
Quote:
Strangely enough, that worked for gallery-template.php, but not for gallery-single-template.php. The latter still does not show the widget-containing sidebar. I opened the file on the server to be sure the code got changed. I flushed the cache, and reloaded the page to be sure I was getting a fresh load. I had to remove <?php get_sidebar(); ?> from both files to get rid of the junk. Ata's custom footer settings are taking effect with both types of gallery pages. Lane |
I just unzipped the plugin again and the gallery-single-template.php does NOT have the
HTML Code:
<?php get_sidebar(); ?> |
Quote:
Lane |
ahh, I missed that one :o
|
I'm curious how you figured that replacing
Code:
<?php get_header(); ?> Code:
<?php Any idea why the above fix works for gallery-template.php, but not for gallery-single-template.php? Lane |
I'm just good ;) how did I fugure it out, well I've been working with the theme for a couple years and did support for a long long time before that, I've looked at the code and I tried it.
what do you mean the gallery-single-template.php doesn't work, it works for me. |
Quote:
http://www.birding4u.com/galleries/ but there's only an empty sidebar at http://www.birding4u.com/galleries/gallery-3/ which is controlled by gallery-single-template.php, and there should be the same kind of ads. Lane |
you have caching turned on - you should always turn off caching while making changes to the siite so ou can see them right away.
please flush the cache and turn the plugin off. Note: try setting your permalinks back to the default and see what happens. |
Quote:
http://www.birding4u.com/?gallery=gallery-3 Lane |
And are you using the two templates with the changes added in? (the change in the header and the sidebar() line removed?)
|
2 Attachment(s)
Quote:
Lane |
what version of Atahualpa?
it's working fine with 3.7.6 - try disabling ALL your plugins |
Quote:
Oops! I wondered why the gallery pages didn't work. I guess I shouldn't disable that plugin! (Where's the "embarrassed" smiley?) Well, the pages haven't reloaded yet, but I better send this off before the forum software logs me off! Lane |
For some reason, the gallery plugin keeps forgetting where the photos are that I uploaded. I'm now uploading them for the third time... and it's taking forever!
Good grief! The template changes are no longer in effect... Oh, I know what happened. When I disabled/enabled the plugin, it copied a fresh set of the default templates (which I haven't edited) to /atahualpa. Now to go take care of that! Lane |
All times are GMT -6. The time now is 12:31 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.