Osclass Support Forums

Osclass plugin support => Blog and News Plugin => Topic started by: Own Petz on January 04, 2023, 09:19:58 AM

Title: Blog and News Plugin Show Search option on Top in Mobile Theme
Post by: Own Petz on January 04, 2023, 09:19:58 AM
Hello,

Blog and News Plugin is very nice but one issue when I am visiting blog on mobile ..search option not showing on top , search option showing below (above categories). Because of this when user visiting blog page on mobile they search on main theme not on blog ..
Can anyone please suggest me how to put "Search on Blog" on top ...

 
Title: Re: Blog and News Plugin Show Search option on Top in Mobile Theme
Post by: Own Petz on January 04, 2023, 01:07:01 PM
I fix this issue little bit -- I paste below code in Search.php , Article.php , home.php and author.php . Then search on blog option is showing on top on mobile and desktop both...  Can anyone tell me how to show this option only on mobile not on desktop.

<div class="blg-side-block blg-search">
    <div class="blg-side-header">

<?php _e('Search on blog', 'blog'); ?></div>
   
   
 <form class="nocsrf" method="POST" name="blg_search" action="
<?php echo osc_route_url('blg-action', array('blgPage' => 'search')); ?>">
 
    <input type="text" name="blgSearch" id="blgSearch" value="
<?php echo osc_esc_html(urldecode(Params::getParam('keyword'))); ?>"
required/>
   
  <button type="submit" title="<?php echo osc_esc_html(__('Search', 'blog')); ?>">
<i class="fa fa-search"></i></button>
   
</form>
  </div>
Title: Re: Blog and News Plugin Show Search option on Top in Mobile Theme
Post by: Own Petz on January 04, 2023, 01:40:21 PM
Now i fixed this issue. ..

Right Code is --  If you Want to show "Search on Blog" on Top only on mobile.


Code: [Select]
<div class="basic isMobile">
<div class="blg-side-block blg-search">
    <div class="blg-side-header">

<?php _e('Search on blog''blog'); ?></div>
   
   
 <form class="nocsrf" method="POST" name="blg_search" action="
<?php echo osc_route_url('blg-action', array('blgPage' => 'search')); ?>">
 
    <input type="text" name="blgSearch" id="blgSearch" value="
<?php echo osc_esc_html(urldecode(Params::getParam('keyword'))); ?>"
required/>
   
  <button type="submit" title="<?php echo osc_esc_html(__('Search''blog')); ?>">
<i class="fa fa-search"></i></button>
   
</form>
  </div></div>