Switch breadcrumb and title, map and one listing
This topic contains 14 replies, has 3 voices, and was last updated by Stiofan O’Connor 8 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: map breadcrumb title
-
AuthorPosts
-
October 10, 2016 at 5:02 pm #280590
Hey all! Hope you are having a nice day!
I have 2 questions today:
1. Is there a hook I can use to switch the output of the header and breadcrumb on all the listing/archive pages, for all post types? Or do I need to alter the template, and if so, which template?
AND
2. when I only have one listing returned, the map doesn’t localize. How can I fix that?
http://www.seniorcomfortguide.com/wordpress/?geodir_search=1&etype=all&stype=gd_event&s=+&near=&event_calendar=20161115Thanks in advance!
ChristinaOctober 10, 2016 at 7:10 pm #280723Hi,
1) I’m not 100% sure I understand what you want to do and where, could you provide a link and maybe a screenshot of what you’d want to achieve?
2) Do you have auto-zoom set for that map?
Let us know,
Thanks
October 11, 2016 at 1:16 pm #281305Hi!
1.
I would like the breadcrumb to appear in the html AFTER the h1 – So instead of the div orderbreadcrumb, header, aside it would be
header, breadcrumb, asideIt works better for the design…does that make sense?
2.
Yes, I have it set for auto zoom, and it works when there is more than one listing returned. If you look at the link above, you can see that if you have only one return it looks like this
http://www.seniorcomfortguide.com/wordpress/?geodir_search=1&etype=all&stype=gd_event&s=+&near=&event_calendar=20161207
and if you have more than one it looks like this:
http://www.seniorcomfortguide.com/wordpress/?geodir_search=1&stype=gd_event&s=+&snear=&sgd_placecategory%5B%5D=&sgeo_lat=&sgeo_lon=Thanks again!!
October 11, 2016 at 6:29 pm #2815931) On which page? Please provide a link and possibly a screenshot.
2) If auto zoom is set and there is only 1 marker, it will use the zoom level set in the widget settings. You are as far as possible now, just change that.
Thanks
October 11, 2016 at 6:30 pm #281594Hey, thanks for the response…
I am trying to change it on the listing pages, http://www.seniorcomfortguide.com/wordpress/senior-living/assisted-living/
I want it above the sidebar and breadcrumbs on these pagesThanks!
October 11, 2016 at 6:44 pm #281601You can try with this snippet:
remove_action('geodir_listings_before_main_content', 'geodir_breadcrumb', 20); add_action('geodir_listings_page_title', 'geodir_breadcrumb', 10);
You may have some css to adjust after this.
Let us know how it goes,
Thanks
October 11, 2016 at 7:00 pm #281642That worked perfectly! now I need it for search results!!
‘geodir_search_page_title’ ?? guessing?
You rock!!
October 11, 2016 at 7:03 pm #281647got it!
October 11, 2016 at 7:21 pm #281652Looks like this one also:
http://seniorcomfortguide.dev/senior-living/assisted-living/alzheimers-memory-care/but not sure what it’s called?
So far that’s listing, search, and really all of the archive type pages so am I missing anything?
October 11, 2016 at 8:32 pm #281757Hi,
the breadcrumb is missing on this last page, please provide a link and admin credentials and we will have a look at your code.
Thanks
October 11, 2016 at 8:38 pm #281761This reply has been marked as private.October 11, 2016 at 8:41 pm #281764I flagged this for the developers, they will let us know asap.
Thanks
October 12, 2016 at 12:46 pm #282113Please check now.
Stiofan
October 12, 2016 at 12:54 pm #282120I have another question in about sort… I think my site isn’t sorting correctly.. I know you guys are in there… can you look?
I have it set in the back end, but when it first populates, it doesn’t sort, featured, then AZ, it sorts featured, then ? date? I am unsure.Thanks!
October 12, 2016 at 1:42 pm #282134Lets keep the two separate: https://wpgeodirectory.com/support/topic/sort-order-3/#post-282133
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket