Event Submit and My Events are using "post" rather than "page" in my theme.

Home Forums Calendar Products Community Events Event Submit and My Events are using "post" rather than "page" in my theme.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #47920
    hometownchatter
    Participant

    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?

    #47937
    Barry
    Member

    Generally 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.

    #47950
    hometownchatter
    Participant

    Yes, 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! πŸ˜€

    #47961
    Barry
    Member

    No 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.

    #47964
    hometownchatter
    Participant

    Thanks Barry. I appreciate your help! I’ll wait to hear back from you! πŸ™‚

    #47976
    Ryan
    Participant

    I’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

    #47992
    Barry
    Member

    Hi 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!

    #48195
    Barry
    Member

    hometownchatter 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.

    #48197
    Barry
    Member

    This reply is private.

    #48231
    hometownchatter
    Participant

    This reply is private.

    #48324
    Barry
    Member

    OK, 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’.

    #48346
    hometownchatter
    Participant

    Okay, 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

    #48351
    Barry
    Member

    That’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.

    #48592
    hometownchatter
    Participant

    Hey 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! πŸ™‚

    #48676
    Barry
    Member

    We 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.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Event Submit and My Events are using "post" rather than "page" in my theme.’ is closed to new replies.