Home › Forums › Calendar Products › Community Events › Event Submit and My Events are using "post" rather than "page" in my theme.
- This topic has 14 replies, 3 voices, and was last updated 10 years, 12 months ago by Barry.
-
AuthorPosts
-
May 8, 2013 at 10:04 am #47920hometownchatterParticipant
I know we’ve skimmed over this before in another thread, but I just wanted to make sure that it’s something my theme is doing and not your plugin. I thought you had told me before that these should be using my page template? Maybe I’m confused, but anyway, they are using “post” so I’m having a hard time figuring out how to remove social sharing buttons because I only have those set for my post pages so they won’t show up on my regular pages like my about page, etc. And, the actual Single Event Listing must be using regular pages because my share buttons aren’t showing up on that page(which is where I want it). I can’t change this in my AddThis plugin settings without screwing up my other posts and pages lol Any suggestions?
May 8, 2013 at 12:40 pm #47937BarryMemberGenerally it will, however not all themes have an actual page.php template (even if it appears that there is when looking at the settings and options it presents) in which case things may be different.
If you are comfortable working via an FTP client or your hosting control panel’s file manager – if of course you have one -then you could determine this by navigating to your theme directory and looking for a file called page.php.
May 8, 2013 at 2:11 pm #47950hometownchatterParticipantYes, my theme does have a page.php file. I wonder why the Event Submit Form and My Events aren’t using that file? Is there a way to force them to use the page.php file? I know I sound really stupid when I try to talk about codes and files…LOL Sorry! π
May 8, 2013 at 4:09 pm #47961BarryMemberNo problem, though I’m not completely sure why your page template isn’t being used here.
Give me a chance to talk with the team and Casey in particular as he very recently was our Community Events specialist and I’ll get back to you.
May 8, 2013 at 4:26 pm #47964hometownchatterParticipantThanks Barry. I appreciate your help! I’ll wait to hear back from you! π
May 8, 2013 at 7:40 pm #47976RyanParticipantI’m having a similar issue. It appears to me that in the “tribe-community-events-class.php” that all of these view are specifically coded to look only for the “page.php” template. That is, they do not follow the selection for the overall Community Events plugin. The problem is, I want them to not have a sidebar (my normal page template does) but I see no way of having it use any other template without specifically modifying your class file… which I assume would break on any updates. Is this basically the problem that Hometownchatter and I are seeing?
Thanks
May 8, 2013 at 11:25 pm #47992BarryMemberHi Ryan,
No – unless I’m misunderstanding it is the opposite of what hometownchatter is experiencing.
The plugin does indeed try to utilize the page.php template of the active theme – in hometownchatter’s case it apparently is not doing so whereas in your case it sounds like it is.
So, if you need help on that one, I’d ask that you create a separate thread to avoid confusion.
Thanks!
May 10, 2013 at 9:51 am #48195BarryMemberhometownchatter I believe this is specific to your theme, though I’m not 100% sure. There are a few things I could suggest but, to save time, it might be faster if you send across a copy of your theme and that way I can see what’s actually happening.
May 10, 2013 at 9:51 am #48197BarryMemberThis reply is private.
May 10, 2013 at 12:18 pm #48231hometownchatterParticipantThis reply is private.
May 13, 2013 at 7:58 am #48324BarryMemberOK, so the way it looks to me is that the page.php template is indeed being used, just as it is with a default theme such as Twenty Twelve.
However, other plugin/theme code may mistakenly believe that a single post has been loaded – this looks like it is a result of the way in which Community Events works and how it channels requests to that template (though I’d need to check in with a team member to confirm this).
What I’d suggest looking into as a workaround is setting up Community Events using a shortcode-based approach (and place those shortcodes on an actual page). There is an overview of this on the Community Events new user primer and it may prevent this ‘conflict’.
May 13, 2013 at 10:09 am #48346hometownchatterParticipantOkay, so I’m trying to understand the shortcode section. What does this mean… “Keep in mind that shortcodes are only available for users who have permalinks turned off; this method will NOT work if youβre running with a pretty permalinks structure.” I am using a custom permalink structure so I would have to see how “turning them off” would affect the rest of the site. Now, how exactly does one shut off permalinks? LOL
May 13, 2013 at 10:17 am #48351BarryMemberThat’s a great point and actually I didn’t consider that aspect of shortcodes: turning off permalinks can unfortunately cause a few other issues so I am going to belatedly withdraw that piece of advice … sorry for the confusion!
(Even so, you can try it if you like – simply select Default Permalinks from WordPress’s Settings > Permalinks screen, but do test to ensure there are no side effects across your calendar and single event pages.)
I’m not sure how or what you are using to insert the social media buttons but it may be worth considering that, in the context of the submit events form, a test using WordPress’s is_page() function will return false and a test using is_single() will return true.
This could, potentially, be tripping up your social media plugin (if you are using a plugin) – so it may be you need a more customized approach here and you may need to work with the plugin author to achieve that.
May 15, 2013 at 7:46 am #48592hometownchatterParticipantHey Barry, thanks for all of your help throughout this process. Have I mentioned that sometimes I make things harder than they need to be? Ugh…I finally realized that I could get the actual AddThis code, instead of using the actual plugin, and just place it in the single.php file where I wanted the share buttons to appear. It wouldn’t screw up my site because I could also go in and place that same code into the single-ad-lising.php file so users can also share the classified ads on my site. Getting rid of the plugin also got rid of the share buttons where I didn’t want them to show up. Sheesh, I hate when it takes me so long to have an epiphany. At least maybe others can learn from my slowness..LOL Thanks for being here for me every step of the way. Your customer service is exceptional! π
May 15, 2013 at 5:09 pm #48676BarryMemberWe all make things harder on ourselves from time to time π
Pleased to hear you’ve reached a solution and thanks for posting back with the result – it’s can be very useful for future users.
-
AuthorPosts
- The topic ‘Event Submit and My Events are using "post" rather than "page" in my theme.’ is closed to new replies.