p5laris
Forum Replies Created
-
Forum: Plugins
In reply to: [Accordion Shortcodes] get_footer() issueThank you for your clarification and for sharing the link. It definitely helps for me to know it’s something that I can try to isolate within my theme’s code. (I’ve been trying a whole bunch of stuff and your advice this will at least help me to eliminate it being a conflict with the plug-in. 🙂
Forum: Plugins
In reply to: [Accordion Shortcodes] When post first loads, accordions do not workHi, Phil—Thank you for your patience and for answering my question posted here (and posted on github.)
I went ahead and did as you directed and looked at all the .php files that accessed the footer. You were absolutely right— there were several pages that had <?php include(‘footer.php’); ?>. When you see the pages it now totally makes sense why I was having trouble with landing pages. The files I found were:
404.php
archive.php
attachment.php
index.php
page.php
search.php
single.phpAnd just to document what I did for anyone else that runs into my problem, I had a custom theme and so I did a text search and found the pages listed above with <?php include(‘footer.php’); ?> towards the bottom of the page . I went ahead and replaced it with the text that you provided: <?php get_footer(); ?> and it now works!
(I’m going to also post this same response just for anyone else that might need reference from github…)
THANK YOU—YOU TOTALLY MADE MY DAY!
——
Just to answer your question (from my posting of the same issue on github)—and for anyone else who might for some reason run into this problem, for them to refer to.
You asked if I had any other plugin installed that might be using the same accordion shortcodes—I do not have any other accordion short codes that I am using. However, that said, in trying to find out the right plug-in to use, I had installed, deactivated, and deleted a few plugins until I found yours—which is more fitting for my needs. Currently, only your accordion plug-in is the one that I am using.
The other plugins I am using are:
Jetpack
Regenerate Thumbnails
Search Everything
W3 Total Cache
WP No Category BaseForum: Plugins
In reply to: [Accordion Shortcodes] When post first loads, accordions do not workAfter trying a myriad of things, my best guess is that for some reason, when the ‘post’ page is accessed whether directed there by clicking on a link from the ‘cover’ page, using the back button, or from any page within the site, for some reason the Javascript for the Accordion-shortcodes is not properly being added/accessed on the landing page—with the exception of landing on the page via clicking on a direct link. In snooping around a bunch of php pages, I was able to confirm that
I checked and saw that: <?php include(‘footer.php’); ?> is included:
archive.php
index.php
page.php
attachment.php
404.phpBaffling.
Please let me know if there is any other information i can provide to make it easier to resolve this issue.