Forum Replies Created
-
AuthorPosts
-
You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.You must have valid license to access this content.
FocuxTheme Support
KeymasterHi
Possible 1, did you upload the main zip package but not the installation zip package? if so, please just upload the theme zip file called samsara_theme.zip
Possible 2, it’s a server issue in most cases, so you can try to unzip the theme zip file and upload the theme folder to wp-content/themes/ with FTP tools.You can refer to the following articles.
http://themeforest.net/forums/thread/are-you-sure-you-want-to-do-this-please-try-again/46866
http://wordpress.org/support/topic/unable-to-install-premium-themes-are-you-sure-you-want-to-do-this
http://www.wpbeginner.com/wp-tutorials/how-to-fix-are-you-sure-you-want-to-do-this-error-in-wordpress/Thanks
FocuxTheme Support
KeymasterHi
1. You need to edit content-slidedown.php file and you will find those search options in the following codes about at line 10 – 13
<select name="post_type" id="post_type"> <option value="post"><?php _e('Blog Posts','Samsara');?></option> <option value="portfolio"><?php _e('Portfolios','Samsara');?></option> <?php if(is_plugin_active('woocommerce/woocommerce.php')):?> <option value="product"><?php _e('Products','Samsara');?></option> <?php endif;?> </select>2. You need to edit includes/theme-functions.php file, find the following function at line 110 – 120
add_filter( 'get_search_form', 'van_search_form' ); function van_search_form( $form ) { $form = '<form role="search" method="get" id="searchform" class="searchform" action="' . home_url( '/' ) . '" > <div><label class="screen-reader-text" for="s">' . __( 'Search for:','Samsara' ) . '</label> <input type="text" value="' . get_search_query() . '" name="s" id="s" /> <input type="hidden" value="post" name="post_type" id="post_type" /> <input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search','Samsara' ) .'" /> </div> </form>'; return $form; }Look at this code in the function
<input type="hidden" value="post" name="post_type" id="post_type" />
Change to
<input type="hidden" value="page" name="post_type" id="post_type" />
Then, edit search.php, find the following codes
<?php $post_types='post'; if(isset($_GET['post_type'])){ $post_types=$_GET['post_type']; } if($post_types=='portfolio'){ echo '<div class="portfolio-posts section"> <div class="portfolio-container">'; get_template_part('content','portfolios'); echo '</div> </div>'; }elseif($post_types=='post'){ $limit = get_option('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('post_type=post&s='.$_GET['s'].'&posts_per_page='.$limit.'&paged='.$paged); get_template_part('loop','default'); }Change to
$limit = get_option('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('post_type=page&s='.$_GET['s'].'&posts_per_page='.$limit.'&paged='.$paged); get_template_part('loop','default');I strongly suggest you can create your own child theme if you want to change the theme files, otherwise, you can’t update the theme smoothly in the future.
Thanks
-
AuthorPosts
