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 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #454450

    Tom Chambers
    Full Member
    Post count: 90

    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 yet

    This 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,
    Tom

    #454459

    Paolo
    Site Admin
    Post count: 31206

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

    #454465

    Tom Chambers
    Full Member
    Post count: 90

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

    #454472

    Paolo
    Site Admin
    Post count: 31206

    All 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

    #454475

    Tom Chambers
    Full Member
    Post count: 90

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

    https://www.photographer.org/photographers/florida/newborn/

    #454485

    Tom Chambers
    Full Member
    Post count: 90

    RE: 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

    #454486

    Paolo
    Site Admin
    Post count: 31206

    You 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

    #454488

    Paolo
    Site Admin
    Post count: 31206

    RE: 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

    #456009

    Tom Chambers
    Full Member
    Post count: 90

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

    #456011

    Paolo
    Site Admin
    Post count: 31206

    If 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

    #456014

    Tom Chambers
    Full Member
    Post count: 90

    ok, 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?

    #456015

    Paolo
    Site Admin
    Post count: 31206

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

    #456016

    Tom Chambers
    Full Member
    Post count: 90

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

    #456018

    Tom Chambers
    Full Member
    Post count: 90

    ok, 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??

    #456020

    Tom Chambers
    Full Member
    Post count: 90

    this seems to be missing;

    .gd-search-field-taxonomy select

Viewing 15 posts - 1 through 15 (of 16 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket