listing page logo opening details page

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #419284

    kala konto
    Expired Member
    Post count: 38

    I added the company logo upload with file upload custom field and css codes to make it similar as featured images (featured images i removed from listing page also with css)
    How can i make the company logo direct to the listing itself, at the moment it just opens up the image in a larger version.
    before i used this code:

    
    
    function modify_geodir_featured_image($post) {
    	if ($post->geodir_company_logo) {
    		?>
    		<a href="<?php the_permalink(); ?>">
          		<img src="<?php echo $post->geodir_company_logo; ?>" />
     		</a>
    		<?php
    	}
    }
    add_action('geodir_before_badge_on_image', 'modify_geodir_featured_image');

    but it lays on top of the featured images and i cant css target the image as it has no class.

    could the listing pages template file be edited to remove function display image large and add href permalink ?

    #419324

    Alex Rollin
    Moderator
    Post count: 27815

    You can add a class in the last field of the custom field > file upload settings. Is that sufficient for your goal here?

    #420114

    kala konto
    Expired Member
    Post count: 38

    No, i would like clicking on the logo from list view to open up companys details page.
    At the moment it just shows large image if clicked.

    Is there better documentins for class triggering, i entered “logo” there and tryed to css “.logo”, it did not even show up in the page source to have a class

    #420219

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You would need to customize the template to create that sort of UX.

    Here is our guide for customizing templates. You would want to customize the detail page if that is where you want that feature.

    https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

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

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

Open Support Ticket