Home Support Extensions Search Alerts Is there a demo or example for the search / e-mail alerts?

Is there a demo or example for the search / e-mail alerts?

  • Author
    Posts
  • qubu.me

    I would like to take a closer look at the function and check whether it can be used for my website.

    ihor developer

    There’s no separate demo, but you can check this overview video https://www.youtube.com/watch?v=nOG3bW5_eXo&feature=emb_title It shows elements and pages that will be added by this extension. The email text is fully customizable like any of HivePress emails.

    qubu.me

    ok, thank you. I will check it

    qubu.me

    we like the alert and want to place it free at another place. How can we do this?

    ihor developer

    Please let me know what you mean about placing it for free, you can purchase the Search Alerts extension here https://hivepress.io/extensions/search-alerts/

    qubu.me

    Sorry, my question wasn’t exactly phrased. We would like to freely determine the location of the Search Alert Button or move it. We are considering placing it above the search results in the top right corner so that it is directly visible to visitors. How would that be possible?

    ihor developer

    It’s possible with a simple code snippet, if you purchase this extension I can help with moving this link.

    qubu.me

    ok, great. Thank you. I will check it with my partner

    Carlo

    Hey I’m a coworker of qubu.me.

    I bought this search alert extension. Can you help us moving the ,,activate search alert” button?

    ihor developer

    Sorry for the late reply. This code snippet should move it to the top bar:

    add_filter(
    	'hivepress/v1/templates/listings_view_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'page_topbar'         => [
    						'blocks' => [
    							'search_alert_toggle' => [
    								'type'   => 'search_alert_toggle',
    								'_order' => 15,
    							],
    						],
    					],
    
    					'listing_filter_form' => [
    						'footer' => [
    							'search_alert_toggle' => [
    								'type' => 'content',
    							],
    						],
    					],
    				],
    			]
    		);
    	},
    	100
    );

    Like this https://prnt.sc/ugn58n

    Carlo

    Where do I have to put the code in?

    In the customizer and then in the CSS part?

    ihor developer

    You can add it using this plugin https://wordpress.org/plugins/code-snippets/ or if you have a child theme you can add code snippets to its functions.php file.

    Carlo

    Ok, that work very good.

    But can I freely determine the position of the search alert by editing the PHP file.
    Or can I just position it either on the top or at the normal position?

    ihor developer

    Sure, but then a different code snippet is required. I provided a snippet for moving it to the top because it was requested in this topic.

    Carlo

    Where can I get a code snippet for moving the button to the top right?

    Like here: https://drive.google.com/file/d/1snc3l6RZd0BzXv_0SW3I66-xbWEjnXPe/view?usp=sharing

    ihor developer

    This code should do it:

    add_filter(
    	'hivepress/v1/templates/listings_view_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'page_header'        => [
    						'blocks' => [
    							'search_alert_toggle' => [
    								'type'   => 'search_alert_toggle',
    								'_order' => 100,
    							],
    						],
    					],
    
    					'listing_filter_form' => [
    						'footer' => [
    							'search_alert_toggle' => [
    								'type' => 'content',
    							],
    						],
    					],
    				],
    			]
    		);
    	},
    	100
    );

    With this CSS snippet to move it to the right (add it to the Appearance/Customize/Additional CSS field):

    .hp-template--listings-view-page .hp-page__header > .hp-link {display:block;float:right;margin-top:-1rem}

    Please note that customizations are not part of support, if further customizations are required consider hiring someone via Fiverr.

    Carlo

    Like for PHP

    ihor developer

    Yes, if your site requires PHP or CSS customizations you can hire someone via Fiverr for a fixed budget. HivePress support doesn’t include customizations.

    Carlo

    Is there any PHP file?

    Carlo

    Thanks for the answers!
    The last message was not planned.

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

You must be logged in to reply to this topic.