*

Sudo

  • ***
  • 47 posts
[SOLVED]Help with adding widget
« on: November 13, 2017, 11:43:32 PM »
Hi, I would like to add the 'promote' button to
/user/items page, so user can promote his items from his list.  I tried
adding:
<div class="osp-promote">
            <span class="osp-text"><?php _e('Promote', 'osclass_pay'); ?></span>
            <span class="osp-icon"><i class="fa fa-angle-down"></i></span>
          </div>

in user-items.php, but did not work.  What do I need to code to get this?  Would like the widget
for each item in the list.

Thanks in advance!
@Sudo
« Last Edit: November 14, 2017, 12:39:28 AM by Sudo »

Marked as best answer by Sudo on November 14, 2017, 12:38:40 AM
*

reflexus

  • ****
  • 146 posts
Re: Help with adding widget
« Reply #1 on: November 14, 2017, 12:19:48 AM »
Add this code:

Code: [Select]
<div class="osp-item" >
<div class="osp-promote">
<span class="osp-text"><?php _e('Promote''osclass_pay'); ?></span>
<span class="osp-icon"><i class="fa fa-angle-down"></i></span>
</div>
<?php echo osp_item_options(osc_item_id()); ?>
</div>

*

Sudo

  • ***
  • 47 posts
Re: Help with adding widget
« Reply #2 on: November 14, 2017, 12:39:11 AM »
Thanks @reflexus!!  Works perfectly!

warm regards,
Sudo

*

reflexus

  • ****
  • 146 posts
Re: Help with adding widget
« Reply #3 on: November 14, 2017, 12:51:27 AM »
Thanks @reflexus!!  Works perfectly!

warm regards,
Sudo

Glad to help you  ;)

*

MB Themes

Re: [SOLVED]Help with adding widget
« Reply #4 on: November 14, 2017, 08:39:41 AM »
@reflexus
Thanks ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots