Support for Envato Buyers Forums DGWork How can I change / edit the following:

Viewing 1 reply thread
  • Author
    Posts
    • #12417
      bdendas
      Participant

      1. Changing the search text to say SEARCH BRANDS instead of SEARCH PRODUCT, also the placeholder text to SEARCH BRANDS instead of SEARCH PRODUCT….

      E.g. https://imgur.com/a/dloxw

      2. Changing overlapping issue

      E.g. https://imgur.com/a/QXUYF

      3. Add recent products section to search results

      E.g.https://imgur.com/a/K3G5a

    • #12426

      Hi

      1. You can install Loco translation plugin, then go to Loca translation > Themes > DGWork, create a new English language file, let’s say en_US, then you can search the text which you want to change, and change it.

      2. Please add the following custom CSS into DGWork Options > Custom Code > Custom CSS

      .no-results{
      	background:#fff;
      	padding: 20px 30px 40px;
      	box-shadow: 3px 3px 3px rgba(0,0,0,.04);
      }

      I will also fix this issue in the next version.

      3. You can insert the following codes to anywhere you want

      <?php 
      if($post_type=='download'){
       echo do_shortcode('[custom_vc_edd_product_grid posts_per_page="6"]');
      }
      ?>

      If you use child theme, please copy template-parts/content-none.php from the parent theme folder to the child theme/template-parts folder. Then, edit this file, find the following codes:

      <?php elseif ( is_search() ) : ?>
      
      			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'dgwork' ); ?></p>
      			<?php get_search_form(); ?>
      
      		<?php else : ?>

      Replace to

      <?php elseif ( is_search() ) : ?>
      
      			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'dgwork' ); ?></p>
      			<?php get_search_form(); ?>
      
      			<div style="margin-top:80px;">
      				<h2>Featured Products</h2>
      				<?php 
      				if($post_type=='download'){
      				 echo do_shortcode('[custom_vc_edd_product_grid posts_per_page="6"]');
      				}
      				?>
      		    </div>
      
      		<?php else : ?>

      Thanks

Viewing 1 reply thread
  • You must be logged in to reply to this topic.