Free Directory, Listing & Classifieds WordPress Plugin Support Themes ListingHive Placeholder, text on page add listing and attribute

Placeholder, text on page add listing and attribute

  • Author
    Posts
  • lucasbarbosa

    Hello

    1. Add listing page: How to insert placeholder in the title and description field? I want to use this for the post tip.

    2. Add listing page: How to insert text (between page title and add image button)? I want to use this to highlight which audience should post and the important rules.

    3. How to force the link of an attribute (Facebook), when accessed on mobile, open through the app? This code works only to open on a web page:

    <a href="https://facebook.com/%value%" target="_blank">%value%</a>

    ihordeveloper

    1, 2. You can try using this code snippet:

    add_filter(
    	'hivepress/v1/forms/listing_update',
    	function( $form ) {
    		$form['description'] = 'custom text here';
    
    		$form['fields']['title']['placeholder']       = 'custom text here';
    		$form['fields']['description']['placeholder'] = 'custom text here';
    
    		return $form;
    	}
    );

    3. This solution may work, but it’ll break the desktop links https://stackoverflow.com/questions/50683354/correct-way-in-2018-to-open-facebook-app-via-website-link/52226364

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.