Join our new community forum for support & discussion

Join Now

Home Support Extensions Marketplace Change “price tag” position

Change “price tag” position

  • Author
    Posts
  • yourwp.site

    Hi, at the moment price shows on the right side, what is cool… However i would like to test moving it to the position below the image… There is a snippet for that? Thank you.

    yevhen developer

    Please let me know if you mean moving it to the Secondary attribute area or some custom area?

    yourwp.site

    Yes, moving it to the Secondary!

    ihor developer

    Please try this PHP snippet:

    add_filter(
    	'hivepress/v1/models/listing/attributes',
    	function( $attributes ) {
    		if ( isset( $attributes['price'] ) ) {
    			$attributes['price']['display_areas'] = ['view_page_secondary'];
    		}
    
    		return $attributes;
    	},
    	1000
    );
Viewing 4 posts - 1 through 4 (of 4 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.