If there are no featured listings in a category . . "No listing found" appears

Discussion in 'GeoCraft WordPress Theme' started by rogerb, Jan 25, 2013.

  1. rogerb

    rogerb Active Member

    Joined:
    May 8, 2012
    Messages:
    481
    Likes Received:
    33
    If there are no featured listings in a category the wording "No listing found" appears.

    This is a really silly thing to happen and is meaningless to a user - it causes confusion and common sense means that no text should appear at all.
     
  2. aliounn

    aliounn Member

    Joined:
    Dec 7, 2012
    Messages:
    136
    Likes Received:
    6
    I agree with you Rogerb, the best way is to hide this bloc if there are no featured listings. same for next and preview button of the slider, they should apear only when there are enough featured listings for the relevant category.
     
  3. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    You can remove "Featured Listing" page by creating custom menu. when there is no featured listing on your site.
    Next and preview button of the slider only display when there is a listing to show on the slider. Without listing they will disappear.
     
  4. rogerb

    rogerb Active Member

    Joined:
    May 8, 2012
    Messages:
    481
    Likes Received:
    33
    Please re-read the issue again Nitesh - "If there are no featured listings in a category the wording "No listing found" appears."

    Why would I want to remove the featured listing page?
     
  5. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    You can remove it manually
    Go to the Dashboard >Editor > taxonomy-listcat.php
    and follow the instruction as shown in image given below
    [​IMG]
     
  6. rogerb

    rogerb Active Member

    Joined:
    May 8, 2012
    Messages:
    481
    Likes Received:
    33
    Thank you Gourav but I'd really like to change the wording to something like 'Why not upgrade your listing so that it will appear here'. This would possibly act as a sales feature.

    Where can I find this text please and any chance that something better can be incorporated in the next release of the theme?
     
  7. rogerb

    rogerb Active Member

    Joined:
    May 8, 2012
    Messages:
    481
    Likes Received:
    33
    Support - where can I find the variable to change the text shown rather than just delete it?
     
  8. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Go to the geocrafttheme\library\text_domains \ template_path.php
    and edit text from line number 31.
     
  9. molatin

    molatin Member

    Joined:
    Aug 11, 2012
    Messages:
    558
    Likes Received:
    19
    Sounds like a great feature to add. I'ds like this too.
     
  10. molatin

    molatin Member

    Joined:
    Aug 11, 2012
    Messages:
    558
    Likes Received:
    19
    Thanks Nitesh.

    Would be great to have this added in the next theme update instaed of having to code it manually for each install.
     
  11. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Thank you Nitesh,
    When editing file, at line number 31 I have showing,
    define('BLG_ARC',__('Blog Archives',THEME_SLUG));

    Where as at line number 61 I have showing the message I was wanting to edit,

    define('NO_LST_FND',__('No listing found.',THEME_SLUG));

    Could you please confirm again the line to edit,

    Thank you
     
  12. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    @tobyb,

    'No listing found' text is available at line no.31

    Check image for reference

    [​IMG]
     
  13. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi, enclosed screen shots of my file codes, something a bit different!!


    Line_31_-_define(\'BLG_ARC\',__(\'Blog_Archives\',THEME_SLUG)).png

    something_different_here!.png
     
  14. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    In your template_path.php that text is available at line no.61, So change that text from there.

    Note:- Your server created extra blank space in template_path file, Please remove blank space manually.
     
  15. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Sorry Gourav, could you please explain which blank spaces to remove and how did the line move from line 31 to 61, is there 30 blank spaces to remove.
    Thank you.
     
  16. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Hi again Gourav, I do not understand, please could you advise, I have a screenshot again from line 1 to 32 and there is not enough spaces to allow the edit line to move to 61, is there a problem with my server that I need to contact the provider?

    template_path_31.png

    This is a screen screenshot from line 31 to 61 where the edit line now is showing!

    templet_path_31-61.png


    Thank you.
     
  17. Neeraj

    Neeraj Administrator

    Joined:
    Jan 3, 2012
    Messages:
    186
    Likes Received:
    7
    Yes, just remove the blank spaces between the lines. Although it would not make any difference but its good to keep the file as compressed as possible without blank lines in between.
     
  18. tobyb

    tobyb Active Member

    Joined:
    Dec 28, 2011
    Messages:
    256
    Likes Received:
    31
    Location:
    World Wide
    Thank you Neeraj, I actually replaced the file with a new one from the latest download, but have an ongoing problem with edit this and sent pm.

    Many thanks
     

Share This Page