News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

Background Color Highlight Topic is solved

If you are having general problems with ShopClass theme, post your questions here. This is not the place for customization or feature requests
Post Reply
sunnysunnet
Beginner
Posts: 18
Joined: Fri Aug 26, 2016 5:21 pm

Background Color Highlight

Post by sunnysunnet » Wed Aug 31, 2016 12:26 pm

Helo,
In shopclass theme ''different background on search and highlight'' How i activate? I activate on Payment pro option. But no changes on screen. i request payment pro support. they say need change something on the theme. Can you help me?

As we already told you at the support chat, apply these changes : https://gist.github.com/conejoninja/c0e ... a65dc8dc67

The sear_list.php changes are not perfect, so you may want to contact the author of the theme and ask for additional help.

Regards
Osclass Form

sunnysunnet
Beginner
Posts: 18
Joined: Fri Aug 26, 2016 5:21 pm

Re: Background Color Highlight

Post by sunnysunnet » Thu Sep 01, 2016 9:02 pm

Can give a replay?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Background Color Highlight

Post by tuffadmin » Fri Sep 02, 2016 2:54 am

I added required code in add-loop.php and ad-loop-premium.php file and it is working.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

sunnysunnet
Beginner
Posts: 18
Joined: Fri Aug 26, 2016 5:21 pm

Re: Background Color Highlight  Topic is solved

Post by sunnysunnet » Fri Sep 02, 2016 8:24 am

Thank You Admin..Its working now.

pfrink25
Beginner
Posts: 12
Joined: Sat May 12, 2018 12:17 pm
Location: Hilliard, Ohio
Has thanked: 1 time
Contact:

Re: Background Color Highlight

Post by pfrink25 » Tue May 22, 2018 5:10 am

Sorry to bump up in older post. I'm guessing I'm not the only one who has tried this issue.

I am trying to accomplish the same thing. I can not locate the files "add-loop.php" and "ad-loop-premium.php". Are these files renamed or do I edit it in a different place because of the 1.3 update from January?

Thank you in advance! :D

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Background Color Highlight

Post by tuffadmin » Wed May 30, 2018 6:51 am

sunnysunnet wrote:
Wed Aug 31, 2016 12:26 pm
Helo,
In shopclass theme ''different background on search and highlight'' How i activate? I activate on Payment pro option. But no changes on screen. i request payment pro support. they say need change something on the theme. Can you help me?

As we already told you at the support chat, apply these changes : https://gist.github.com/conejoninja/c0e ... a65dc8dc67

The sear_list.php changes are not perfect, so you may want to contact the author of the theme and ask for additional help.

Regards
Osclass Form
From new version of shopclass we have created a centralized class to manipulate and create ads loop, this class is located in
shopclass=>includes=>class=>tfcAdsLoop.php

look for these function

Code: Select all

private function renderGalleryItem( $item ) {.....}
private function renderListItem( $item ) {........} ?>
In first line of these function add "<?php osc_run_hook("highlight_class"); ?>" in class attribute. I hope it may work.
Regards
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

pfrink25
Beginner
Posts: 12
Joined: Sat May 12, 2018 12:17 pm
Location: Hilliard, Ohio
Has thanked: 1 time
Contact:

Re: Background Color Highlight

Post by pfrink25 » Tue Jun 05, 2018 1:10 am

I ended up posting the code here:

Line 160: private function renderListItem( $item ) { ?>
<article class="adbox_ads <?php osc_run_hook("highlight_class"); ?><?php echo $this->listClass; ?>" data-mh="ads-group">
<div class="adbox_box panel <?php osc_run_hook("highlight_class"); ?> <?php if ( $item[ 'isPremium' ] ) {
echo 'premium premium-ads';
} ?>">

Hopefully this will help others who want to use this feature also!

Thank you again @TuffAdmin!

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Background Color Highlight

Post by tuffadmin » Tue Jun 05, 2018 5:23 am

Thank for sharing this, it will surely help others.
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

Post Reply