David Sirius

Forum Replies Created

Viewing 15 posts - 76 through 90 (of 122 total)
  • Author
    Posts
  • in reply to: Show category icons on search page (in results) #411142

    David Sirius
    Expired Member
    Post count: 163

    Yep, I’m aware thanks Guust. Hence, I will have to always replicate and mirror actual categories and the pseudo categories in custom fields.

    The code (adjusted for the sub cats) didnt work, it actually just removed the icon and the hidden “yes” was still there.

    Code I used:

    
    
    .geodir_subcategory1a .geodir-i-checkbox {
      display: none;
    }
    in reply to: Show category icons on search page (in results) #411127

    David Sirius
    Expired Member
    Post count: 163

    I got to work now.. what a long ride. Anyway, here are the steps that I did to make it work and the CSS code for anyone trying to achieve something similar (it’s all about taking AND giving back):

    1) in geodirectory -> place settings -> custom fields -> add a checkbox for each category you have
    2) within the checkbox settings:
    2a) dont enter anything for frontend title
    2b) enter HTML variable name which will be relevant for the CSS (e.g. I used parentcategory1)
    2c) is active yes
    2d) show in listings page
    2e) for parent categories that should have text: dont reference a icon link. For sub cats that should have an icon: enter the icon url.
    3) add the following code to your child theme style

    
    
    .geodir_more_info {
        float: left !important;
        clear: both !important;
    }
    
    [class*="parentcategory"] {
      clear: both !important;
    }
    
    .geodir_parentcategory1 {
      float: left;
      display: inline;
      margin: 0;
      text-align: center;
      visibility: hidden;
    }
    .geodir_parentcategory1::before {
      content: 'Parent Cat 1:';
      visibility: visible;
    }
    .geodir_parentcategory2 {
      float: left;
      display: inline;
      margin: 0;
      text-align: center;
      visibility: hidden;
    }
    .geodir_parentcategory2::before {
      content: 'Parent Cat 2:';
      visibility: visible;
    
    }
    .geodir_subcategory1a {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    
    .geodir_subcategory1b {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    .geodir_subcategory1c {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    
    .geodir_subcategory2a {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }

    The final result is in screenshot 1

    The only problem that remains is that the checkboxes deliver the output “yes”, which is not visible due to the CSS transparent attribute, but its still there (see screenshot2). @guust: is it easily possible to remove the “yes” output?

    in reply to: Show category icons on search page (in results) #411119

    David Sirius
    Expired Member
    Post count: 163

    Hi Guust,

    I have developed a workaround via custom fields based on this info: https://wpgeodirectory.com/docs/custom-field-examples/ whereby I’m replicating each category as custom field. This works for one line of icons but fails for a seperation 2 lines. I found a linebreak CSS code ‘content: ‘\A” and ‘white-space: pre’, but it doesnt work, the 2nd parent cat text is not left-aligned underneath the parent cat 1 text (but starts where the line of parent cat 1 finishes) and the subcat icon of parent cat 2 is still misplaced in the line above (see screenshot 1).

    I’m currently using the following CSS code:

    
    
    .geodir_parentcategory1 {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      text-align: center;
      visibility: hidden;
    }
    .geodir_parentcategory1::before {
      content: 'Parent Cat 1:';
      visibility: visible;
    }
    .geodir_parentcategory2 {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      text-align: center;
      visibility: hidden;
    }
    .geodir_parentcategory2::before {
      content: '\A Parent Cat 2:';
      visibility: visible;
    
    }
    .geodir_subcategory1a {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    
    .geodir_subcategory1b {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    .geodir_subcategory1c {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    
    .geodir_subcategory2a {
      float: left;
      display: inline;
      clear:none !important;
      margin: 0;
      width: 1.75vh;
      color: transparent;
    }
    

    I have added another screenshot without the white-space and \A element to show how it normally looks.

    Could anyone help me in getting this properly aligned?

    Many thanks
    David

    in reply to: Show category icons on search page (in results) #411113

    David Sirius
    Expired Member
    Post count: 163

    Ok understood, thanks Guust. I’m not familiar with PHP (only html and CSS) so I wont be able to customise it myself. Shame though as it felt so close. I’ll think of a workaround for now and fix this properly with a developer from your link at a later stage when all road blocks are solved.

    in reply to: Show category icons on search page (in results) #411110

    David Sirius
    Expired Member
    Post count: 163

    GUUST!! You rockstar! Thank you so much!! You wont believe the time I have wasted on this!

    There is only one thing left, which is to structure the icons in a meaningful way:
    I have parent and subcategories. The code now shows all categories (regardless of type) next to each other, which makes sense for no sub cats but doesnt work in this case.
    How would the code to be amended to have the parent categories as text underneath eachother followed by their subcatageories as icons in the same line, basically an ordered list of parent categories with their sub cats next to them?

    As an example, the final output result would be:
    <TEXT>Parent category name 1:</TEXT> Subcategory icon 1.1 Subcategory icon 1.2 …
    <TEXT>Parent category name 2:</TEXT> Subcategory icon 2.1 Subcategory icon 2.2 …
    <TEXT>Parent category name 3:</TEXT> Subcategory icon 3.1 Subcategory icon 3.1 …

    Thank you again!

    in reply to: GD add-ons and updates / supprt #411106

    David Sirius
    Expired Member
    Post count: 163

    Thanks Guust. So far so good on the new plugins, I’m just frustatingly stuck for the second day on implementing the category icons on the search page. I have opened a topic in general discussion. I would really appreciate if you could perhaps have a look (understanding that it falls in customisation)? I’m currently browsing the forum on “category icons” in the hope of finding something that could help..


    David Sirius
    Expired Member
    Post count: 163

    Hi Paolo,

    I have purchased the full membership and the location manager is installed.

    It all works now!

    Best,
    David

    in reply to: GD add-ons and updates / supprt #411103

    David Sirius
    Expired Member
    Post count: 163

    There is not much point buying lifetime updates if the business has no cash-flow after everyone bought the lifetime updates, they’ll go broke because of lack of funds and you are left with … 🙂

    But you would continue to have recurring first time customers that would generate CF? I guess a more balanced approach between 100% repurchase price and 0% = lifetime updates would be best.

    Constructive criticism happily accepted, it allows us to explain 🙂

    Great, glad it came across the right way.

    I have subscribed now for full membership 🙂

    in reply to: Show category icons on search page (in results) #411077

    David Sirius
    Expired Member
    Post count: 163

    Thank you Alex. I will have a fresh look tomorrow morning!

    All the best for the new year!

    in reply to: Show category icons on search page (in results) #411061

    David Sirius
    Expired Member
    Post count: 163

    I found in listing-listview.php the relevant code for the section on the search page:

    <?php
    /**
    * Called before the post excerpt on the listings view template.
    *
    * @since 1.0.0
    * @param object $post The post object.
    * @see ‘geodir_after_listing_post_excerpt’
    */
    do_action(‘geodir_before_listing_post_excerpt’, $post); ?>
    <?php echo geodir_show_listing_info(‘listing’); ?>

    So the action ‘geodir_before_listing_post_excerpt’ is providing all the custom fields which per my screenshot are categories, and two text fields. However, I cannot find the PHP/HTML file that defines the action. I have manually search in all files in the geodirectory plugin folder and subfolders of functions, templates, and widgets.

    I havent found the HTML code for the details page either (just the general listing-detail.php file pulling the content via actions).

    do_action(‘geodir_add_page_content’, ‘before’, ‘details-page’);

    in reply to: GD add-ons and updates / supprt #411053

    David Sirius
    Expired Member
    Post count: 163

    Understand, thanks Guust!

    My customer feedback to the extent anyone cares: lifetime updates should definitely be included. I understand that support should be limited and 1year makes sense, but a tool that becomes obsolete / outdated after 1 year and requires a 100% purchase price again is over the top, i.e. all tools are actually not for purchase but only for subscription. Taking a comparable example, I know several website builders have the same pricing policy (subscription onyly), but that’s especially why I choose Thrive Architect among all of them as they offer a great plugin with a 1year support and lifetime updates for their plugin.

    Anyway, please understand that I’m not critizing you at all but the price policy decided on by Ayecode’s management.

    in reply to: Show category icons on search page (in results) #411049

    David Sirius
    Expired Member
    Post count: 163

    I understand Alex, but honestly there are plenty of files across three folders (GD plugin, directory starter, supreme directory) and it’s impossible to find the right place without any help. I’m no professional but typically do know my way around. There is no supporting documentation available to understand the architecture deep enough (>> no the templates page you may refer to is high level and does not help for such a change) and I have spent hours by now browsing through code, it’s really frustrating to constantly hit a wall with the GD code and then facing limitations in the forum here as well and it’s not practicable to hire a developer for any marginal change. Users of the GD plugin should be really able to make layout changes themselves either via available sufficient documentation or support.

    With regards to the question, phrasing it differently: to start making the change (text to icons), I would need to know in which file I have to look to find the code of the details page that calls the icons (screenshot 1). Secondly I would need to understand in which file I have to go to make the amendment by applying similar code from the details page to the search page (screenshot 2).

    in reply to: Show category icons on search page (in results) #411043

    David Sirius
    Expired Member
    Post count: 163

    Ok, thanks. I’m not yet too familiar with the full architecture of the plugin and supreme theme, but given your reference to the code snippet, I assume that the content for each place in the search page (i.e. what is shown in my first screenshot) is coded in the functions.php of the supreme-directory folder?

    in reply to: Show category icons on search page (in results) #411041

    David Sirius
    Expired Member
    Post count: 163

    Found it! Wouldn’t think it would be in the custom field section! Thanks!

    I have now the categories in text form shown (see screenshot), but how do I pull the respective category icons? I could dig through the files to search for the icon code on the details page (just under the main picture the icons are listed), but where would I insert the code?

    in reply to: Show category icons on search page (in results) #411039

    David Sirius
    Expired Member
    Post count: 163

    I dont think only CSS is sufficient as the content isn’t even there yet. For resizing and aligning the icons next to each other, I agree CSS will be needed.

    @ Guust & Paolo: any view on the above?

    Thank you very much!

Viewing 15 posts - 76 through 90 (of 122 total)