Breadcrumbs
This topic contains 11 replies, has 4 voices, and was last updated by Giri 8 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
December 22, 2016 at 1:47 am #328652
Sorry if this has been asked before.
1.
I’m setting up a website and business directory is just a part of it. So the homepage in Settings > Reading is set to the front page of my website.
I think this is the reason why Home in GD permalinks points to my website homepage (even though Geodirectory > Permalinks > GD Homepage is set to the actual gd homepage)This is what I’ve found while searching the forum:
“You cannot use a different homepage at WP reading and GD permalinks.”
https://wpgeodirectory.com/support/topic/map-not-showing-5/#post-160984Do I understand it correctly – there is no way to have my website homepage set to the page of my choice (not gd) and still have permlainks work correctly for the directory.
If this is not doable it pretty much kills my project and I won’t be able to use GD, even though I like it so far….
2.
Another thing that I can’t wrap my head around. Please take a look at the screenhoot: http://imgur.com/a/atBCLWhen I click on Select Files button, it opens a dialog to upload files from my computer. I was hoping to be able to use images from my wordpress media library as a featured image, but it seems that it is not possible?
Thank you.
December 22, 2016 at 7:12 am #328719Hi there,
I’ll try to answer your questions accordingly.
1. Kindly refer to this section of the documentation for more info https://wpgeodirectory.com/docs/basic-installation/#home
2. Unfortunately, you can’t do that because the images are uploaded directly from your members and they are not allowed to use the WordPress Media if it’s a non-admin. But I’ll check with a developer and see why an admin can’t access to the WordPress media files.
Let us know how it goes.
Thanks!
December 22, 2016 at 4:50 pm #329253Please see: https://wpgeodirectory.com/support/topic/media-handling/#post-239373
Thanks
December 22, 2016 at 5:01 pm #329254Kor, you either did not read my question or I don’t understand the explanation 🙂
It is fairly important issue for us.I need to do 2 things:
1. To have my homepage set in Settings > Reading to the page of my choice. (NOT GD home)
2. To have breadcrumbs work correctly in GD directory, so the Home in gd breadcrumbs will be connected to the GD Home page.************
Please let me know if ti is doable, since the documentation is a bit ambiguous imho.
On one hand the documentation says “If you want to use one of your normal WordPress pages for the homepage of your website, then select the GD Location page here.”On the other one the GD prompt says below the GD Homepage field: “Select the page to use for the GD homepage (you must also set this page in Settings>Reading>Front page for it to work)”
Thank you!
December 22, 2016 at 6:33 pm #329336Hi,
1) Just create a custom page and use it as home in reading settings.
2) if your home is not the GD home, the Home link of the breadcrumb will point CORRECTLY to the website home page. Not to the GD Home page, that in that case it shouldn’t even be used.
Thanks
December 22, 2016 at 7:14 pm #329368OK, probably it should be considered as a feature request….
The logic I think is fairly simple – some people would like to have business directory as part of monetization of their site. it means they will have business directory as just one of many tools.
When you route people to business directory, you want them to stay there – hence the request in this scenario for ‘home’ in breadcrumbs to be pointing to a specific gd page, even though the main website homepage is set to something else.It is probably easier said then done, but then again – it is just a feedback that you guys may consider at some point.
Cheers.
December 22, 2016 at 8:13 pm #329373just to illustrate the point, please see the screenshot: http://imgur.com/a/eKG8T
In search results the only available option in breadcrumbs is Home. And in this configuration it will take you to the website homepage, while I really would like clients to stay in business directory. And it is a bit confusing for them too (we are talking about the scenario when website homepage is not set to gd home).
Cheers!
ElijahDecember 22, 2016 at 8:33 pm #329375Actually, I think there is an easy solution for this, simply to remove Home from the breadcrumbs display, like this:
#breadcrumbs > li > a:first-child { display: none !important; }
The only problem is I have no idea how to remove the preceeding ” > ” sign (as in screenshot)
(other than that it does the trick nicely)
Just sharing.
December 23, 2016 at 4:56 pm #329792I asked to the developers to let us know if there is a workaround.
Thanks for your patience,
December 23, 2016 at 5:10 pm #329794Hi,
You can modify the first item with a filter.
If you don’t want home link use this code
function modify_breadcrumb_first_item($html) { return ''; } add_filter('geodir_breadcrumb_first_link', 'modify_breadcrumb_first_item');
If you would like to modify the link to point to something else use this code instead
function modify_breadcrumb_first_item($html) { return '<a href="' . home_url() . '/directory/">' . __( 'Home', 'geodirectory' ) . '</a>'; } add_filter('geodir_breadcrumb_first_link', 'modify_breadcrumb_first_item');
Replace directory with your endpoint.
Please use code snippets plugin to paste those code. https://wordpress.org/plugins/code-snippets/
You can also use your child theme’s functions.php file.
Thanks
December 24, 2016 at 5:57 am #329976Incredible, thank you guys, I didn’t expect you to go that far. Much appreciated.
December 26, 2016 at 8:31 am #330554You are welcome 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket