Need to remove several words from code that aren't being used
This topic contains 15 replies, has 2 voices, and was last updated by Tom Chambers 6 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 15, 2018 at 7:43 pm #454450
HI guys,
We need to remove several words associated with elements we have commented out of the stylesheet, but that still show up in the code and are one of the things affecting SEO on the site.
The following page is an example;
https://www.photographer.org/photographers/florida/
And the words you don’t visually see on this page, but that are in the code and affecting SEO, are the following:
Pinpoint
Favorite
Specialization
Category
Listing
Reviews – these you can still see, we haven’t commented out yet
No Reviews – these you can still see, we haven’t commented out yetThis is a significant issue and inhibits any category or location pages from obtaining good SEO. Let me know if you have questions further, but I need a solution for this or we won’t be able to use this directory anymore.
Thanks,
TomNovember 15, 2018 at 8:22 pm #454459There is no way to do that, other than modifying all templates. Modifying templates is considered a customization and it is beyond support.
Thanks
p.s. those words should not affect your SEO, Google knows how to recognize labels. What does affect your SEO on those pages is the absence of a general description or better one for each listing.
November 15, 2018 at 8:41 pm #454465I understand. Which templates, can you point me to where they are, we’ll take it from there if that’s the direction we want to go.
I agree on labels, but the lack of content is leaving us weighted with those labels. I’m not sure how we can get a description on the regional/city pages, is that in Multi-Location seo settings??
Thanks for the help
TomNovember 15, 2018 at 9:15 pm #454472All templates are in the geodirectory-templates folder inside the plugin. From there you will be able to find the function where those lables are used.
Another option would be to use the translation file and translate them with a blank space, that will remove them from the plugin output. This workaround would take a lot less time and would be easier to keep it update proof.
Yes you can add a location description through the Multi-Location seo settings, but that looks like a listings page, not a location page.
For the listings page you can add category descriptions.
Thanks
November 15, 2018 at 9:22 pm #454475I added some text in the seo settings for this Florida page sample in Region SEO in SEO settings, and it doesn’t show up. Where is that suppose to show up?
Here is a listings page for a category in florida and we have added descriptions there;
November 15, 2018 at 9:42 pm #454485RE: Translate option, we don’t need to do this to every language if we aren’t using them do we? , just our english file, correct? thx
November 15, 2018 at 9:42 pm #454486You need to add the widget “Location Description” to any of the GD Home widgets areas for location pages, but as I said previously that is not a location page. You need to add the description to the category itself.
Places > Place Category > Category Top Description.
Thanks
November 15, 2018 at 9:46 pm #454488RE: Translate option, we don’t need to do this to every language if we aren’t using them do we? , just our english file, correct? thx
correct, you can follow this doc: https://wpgeodirectory.com/docs/category/translation/
and make sure to save the mo file in the correct place: /wp-content/languages/plugins/geodirectory-en_US.mo
Thanks
November 26, 2018 at 8:48 pm #456009Ok, I tried this, it worked, but either it messed up our search category pulldown or a recent update did it. how to i go back to the default po/mo files? i tried uploading from a clean copy of wpgeo and it didn’t work?? thx
November 26, 2018 at 9:29 pm #456011If you uploaded the new mo file in the right folder as explained in the documentation, just remove it.
If you uploaded your mo file in the plugin folder to replace the original (this would be a mistake because you’d lose it after every update), download a fresh copy of GeoDirectory and reupload the original mo file in the plugin folder.
Let us know how it goes.
Thank you
November 26, 2018 at 11:00 pm #456014ok, that worked, thank you. But the search box still doesn’t contain the category dropdown…did something change in last 2 updates to affect that?
November 26, 2018 at 11:08 pm #456015Not really, is it set to be displayed correctly in place settings?
If you provide a link and admin credentials in a private reply we’ll have a look.
November 26, 2018 at 11:29 pm #456016Nothing changed with place settings. In fact, i can see the search code for category dropdown in the code. look at our homepage or any page with search on it.
November 26, 2018 at 11:43 pm #456018ok, the old non-styled form works…but the new styled one doesn’t now… did you guys change a style?
we did have to change something that we found you changed related to the buttons on profiles pages, so maybe it’s something like that??
November 27, 2018 at 12:02 am #456020this seems to be missing;
.gd-search-field-taxonomy select
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket