Relocate the Favorite Link (ONLY)

This topic contains 8 replies, has 3 voices, and was last updated by  Paolo 9 years, 2 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #53507

    Dylan
    Expired Member
    Post count: 40

    Hello,

    I have removed the details section from the sidebar with:

    remove_action( 'geodir_detail_sidebar_inside', 'geodir_details_sidebar_place_details', 10 )

    Now I want to add back the Favorite link (with the heart) ONLY, to another area of the details page.

    How would this be done?

    Thank you.

    #53602

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    with geodir_add_to_favorite.

    Example:

    add_action( 'geodir_detail_sidebar_inside', 'geodir_add_to_favorite', 10 );

    Let us know how you went.

    Thanks

    #53605

    Dylan
    Expired Member
    Post count: 40

    Hi Paolo,

    That works great for adding it back to the sidebar. However, I wanted to add it back within the geodir_details_main_content area.

    I can’t seem to get it to work there?

    Thanks.

    #53610

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    adding it this way, it seems to be working only in the sidebar for me too. I’ll ask to Stiofan to gives us details on how to move it within the main content area.

    Thanks for your patience,

    #53645

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Dylan,

    Please use this code:

    Thanks,

    Stiofan

    #53649

    Dylan
    Expired Member
    Post count: 40
    This reply has been marked as private.
    #53668

    Paolo
    Site Admin
    Post count: 31206

    Have you tried echoing it directly within that custom HTML:

    
    
    ?>
    
    	<div class="ot-detail-page-controls">
    		<div class="wrap">
    			<div class="wrap">
    				<div class="one-third first ot-control-item"><a href="#respond"><i class="fa fa-pencil-square-o"></i>Write Review</a></div>
    				<div class="one-third ot-control-item"><a href="#"><i class="fa fa-camera"></i>Add Photo</a></div>
    				<div class="one-third ot-control-item"><a href="#"><i class="fa fa-star-o"></i>
    
    <?php echo geodir_favourite_html('',$post->ID); ?>
    
    				</a></div>
    			</div>
    
    			<div class="ot-middle-control ot-control-item"><a href="#"><i class="fa fa-cutlery"></i>Menu</a></div>
    
    			<div class="ot-lower-control wrap">
    				<div class="one-half first ot-control-item"><a href="#"><i class="fa fa-bell"></i>Request Catering</a></div>
    				<div class="one-half ot-control-item"><a href="#"><i class="fa fa-pencil-square-o"></i>Write Catering Review</a></div>
    			</div>
    		</div>
    	</div>
    
    	<div class="ot-detail-page-photos">
    		<div class="wrap">
    			<p>Photos go here</p>
    		</div>
    	</div>
    
    	<?php

    Let us know,

    Thanks

    #53775

    Dylan
    Expired Member
    Post count: 40
    This reply has been marked as private.
    #53776

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

Viewing 9 posts - 1 through 9 (of 9 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