Listing titles are awkwardly worded

This topic contains 4 replies, has 2 voices, and was last updated by  jimmymoto 9 years, 4 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #48156

    jimmymoto
    Full Member
    Post count: 91

    I’m in fine-tuning mode now and have been bothered by the way the title of listings are worded.

    For example, when showing all listings in category “Construction & Renovation” within CPT “Retail & Services”, the title shows as “All Retail & Services in ‘Construction & Renovation'”.

    This is awkward english (in my region at least). The proper way to state the title would be “All Construction & Renovation listings in Retail & Services”

    It would be even better if the title was simply “Construction & Renovation listings”.
    Is this something that a po file can resolve, or will it require modifying the core plugin?

    #48296

    Paolo
    Site Admin
    Post count: 31206

    Hi Jimmy,

    this should help: https://wpgeodirectory.com/support/topic/change-entry-title-for-category-pages/

    You can do everything from within your theme’s functions.php file.

    Let us know how you went.

    Thanks

    #48933

    jimmymoto
    Full Member
    Post count: 91

    I’ve tried following the steps but am getting blank screen on listings pages.
    The instructions provided in the post assume a fair level of knowledge about what files do what in the back end. Also, the method is confused since I am not using Genesis theme.

    Can you give me directions for altering titles for Enfold theme to simply display the category name when bringing up listings by category?

    ie. Currently I have listing pages with titles like “All Health and Wellness listings in ‘Health Professionals & Consultants’” (much too long, overlaps my breadcrumbs)

    I just want the titles to simply read “Health Professionals & Consultants” (no single or double quotes).

    NOTE: Sometimes the default generated title is correct (like when I bring up a page of all listings in any CPT, title shows correctly as “All Health and Wellness listings”.

    #49117

    Paolo
    Site Admin
    Post count: 31206

    HI Jimmi,

    you didn’t specify you are using Enfold. I gave you pointers to do it with GD. Given that the user who asked before was using Genesis, I added Genesis instructions too.

    The problem here isn’t the title awkwardly worded, but the CPT name and category name that are too long. It is a specific case that only concern your choice of using such long names for CPTs and categories, that will make both title and breadcrumbs extremely long.

    With CSS you could always make sure that the title doesn’t overlap the breadcrumb and goes down a second line.

    If you were using shorter names for categories and CPT like most users do, you would get something like this: http://dropct.com/enfold/places/hotels/

    All Places in Hotels. Which means All listings of the CPT Places in category Hotels

    If you visit a CPT page, obviously you get only “All Places”, because no category is selected.

    To come back to the customization, We can give pointers on how to modify the code, not write the exact code for each specific member needs.

    If you need to modify what we provide, of course you need to have some php/wordpress development knowledge. If you don’t have them, you must hire someone who does.

    Long story short, to do this with Enfold it is a bit more complex.

    1st you would need to add this to your theme functions.php to remove the current title:

    remove_action('geodir_wrapper_open', 'enfold_detail_title', 8, 2); // ADD GEODIR TITLE

    Than copy the function enfold_detail_title from compatibility/Enfold.php (line 178 to 213) and paste it in your theme functions.php, and rename it to :

    function my_enfold_detail_title($page, $class)

    also rename the function called for the listings page title (line 191) from geodir_action_listings_title(); to my_geodir_action_listings_title();

    At this point you need to (the part we cannot do for you):

    2) copy the function geodir_action_listings_title from geodirectory_template_actions.php line 732 and paste in your theme functions.php

    3) edit the function as desired and make sure to rename it to my_geodir_action_listings_title.

    Lastly in your theme functions.php add

    add_action('geodir_wrapper_open', 'my_enfold_detail_title', 8, 2); // ADD GEODIR TITLE

    Which is going to finally add back your custom title.

    Hope this is clear enough. If it isn’t we can always move this into the jobs section where any developer can help yuo complete this task in probably less than 1 hour.

    Let us know,

    Thanks

    #50065

    jimmymoto
    Full Member
    Post count: 91

    Thanks for the assistance and I really appreciate the time you took to write the detailed directions.
    I will pass these notes on to a developer to handle this work.

    I agree that some of my CTP and category names are long, but I still think the logic is flawed when titles state “all [main category] in [subcategory]”.

    That’s like saying “all box in the contents”.

    It is backwards to me, but I guess no one else is complaining so I’ll deal with it.

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount