Posted: February 1, 2016 at 6:13 am
|
Hello, How can i solve it?
|
Which URL are you visiting? Try flushing your permalinks (Dashboard -> Settings -> Permalinks -> Save) and then retest. |
|
|
Hi Tony, thank you: You can see it here (click on the left side bar “Próximas salidas”) |
Clicking ‘Próximas salidas’ takes me to your events listing: http://paragustosloscolores.com/mediterraneandive/events/ Which would be the expected result. However it looks like your theme is outputting a search title on archive listings, it’s the same with venues: http://paragustosloscolores.com/mediterraneandive/venues/ That’s not actually a search listing, but an archice of EE events and EE venues. Your theme is outputting “X results for browsing: Unknown” on the top of archive pages so they look like searches. So in short EE is working as expected but your theme is styling the output to look like a search (I’m not sure why the theme would do that to be honest) |
|
|
Hi, And the widgets bar that I see it’s the “search sidebar widget area”. Sorry for my english, i’m trying to explain it the best i can 🙂 |
Hi Laura, I’m sorry but that page is not the standard search results page, it is an archive of events, take a look here – http://take.ms/Hmf7Q Notice how the body_class has ‘archive’ and ‘post-type-archive-espresso_events’, that’s is an archive of Event Espresso events. Now if I do a search on your site for ‘something something’, this is what I get – http://take.ms/ANEaJ Now notice the body_class now has ‘search’ and ‘search-no-results’, that is a search result page. Whats happening is your theme is styling the archives to look the same as the search, they are infact 2 different templates. If you install What the file and reload the Event listing, in the admin bar you’ll see a ‘What the file’ menu, what template is the page loading? |
|
|
Yes, that’s true! it’s an archive of events, but it’s still not an Event List. I’ve installed “What the file” plugin. What I see it’s “archive.php” and a list of template parts (diferents archives) like: |
With Event Espresso 4 the archive listing is the Event list, however the output is total dependent on the theme. It looks like your theme outputs only the_title and the archive for archive listings. Can you send a copy of the theme to support[at]eventespresso.com so I can take a look? |
|
|
I can give you an admin log/pass if you want to enter to the administration and take a look.. (in private, of course). It’s that better? |
No as this isn’t an issue with EE’s settings, it’s a issue with the themes template files. I needs a copy of the theme I can install locally and see what is happening 🙂 |
|
|
Hi, |
Yes I did, thank you. The reason the search and archive page look the same is because the themes search.php just calls the archive.php template file. search.php simply has: So then archive.php is used for both searches and archive lists. In order to get this working a custom template file will need to created from your current archive listing template. This template file will only be used for EE events so that the events no longer look like search results. There are a couple of changes that need to be made to the template for this to work, are you comfortable with PHP and WP template files? If so we can help guide you in the right direction to fix this once have purchased your support license. |
|
|
No I don’t :s But if I make some changes to some archives, then.. are they wonna be re-writed when I upgrade this plugin to a new version that you make in a future? (Will I lose those changes?) |
Its not Event Espresso you are making changes to, its your sites theme, which means you can create a child theme which allows you to override template files within the parent. You can then update the theme (and Event Espresso) without losing any changes. |
|
|
Hi!
http://paragustosloscolores.com/mediterraneandive/events/salidas-en-sabado/ Thank You! |
Hi Laura, I’ve moved your support thread into the premium support forum 🙂 Turns out that is an issue when themes incorrectly use the_title() for the title attribute. the_title() can be used by plugins to add additional functionality (like what Event Espresso is doing) which is then applied to the title attribute if the_title() is used there. The theme should be using the_title_attribute() for that section: https://codex.wordpress.org/Function_Reference/the_title_attribute We can disable the banner EE is adding to the title to prevent this for now, but I would also create a ticket within the themes support forum to have them correctly use the_title_attribute(). If you go to Event Espresso -> Events -> Templates (tab) Set ‘Display Status Banner’ to No, save the settings and refresh the page, that code should no longer be displayed. |
|
|
OK, done! By the way: thanks a lot for your fast and nice help 😀 |
No, its just a different section of the forum that all of the support team can view. Have your created a child theme for your current theme? Follow the steps here: https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/ All the way down to ‘Child Theme Mechanics’ Note that those instructions are for a child theme of twentyfourteen, within ‘Template: ‘ will be the name of your theme. |
|
The support post ‘No Event List: just Search Results Page’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.