*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
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 ...

 
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Blog and News Plugin Show Search option on Top in Mobile Theme
« Reply #1 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>
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

Marked as best answer by frosticek on January 04, 2023, 03:48:36 PM
*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Blog and News Plugin Show Search option on Top in Mobile Theme
« Reply #2 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>
« Last Edit: January 04, 2023, 03:48:27 PM by MB Themes »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com