Osclass Support Forums

Osclass theme support => CareerJob Osclass Jobs Theme => Topic started by: Lucasdelton on November 01, 2020, 09:16:44 PM

Title: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 01, 2020, 09:16:44 PM
Hi, I bought the carereerjob template on your website but it doesn't show ads in the mobile version and even on the desktop it doesn't show places:

Banner Item Description
Banner Search List

Please ask them to check my site: https://emprego.classmega.ao/
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 02, 2020, 07:31:54 AM
@Lucasdelton
Theme does not show latest items at all:
https://careerjob.mb-themes.com/

You create block for latest here using loop-single.php
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 04, 2020, 06:55:08 AM
I am referring to banner ads for adsense it does not display in the mobile version
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 04, 2020, 07:17:11 AM
Add this to your style.css:
Code: [Select]
.banner-theme.not767 {display:block!Important;}
Banners are hidden on mobile by default on all the themes
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 04, 2020, 01:40:03 PM
thanks. I already added it and it is working, but there is still a small problem the second ad in the search list it does not appear
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 04, 2020, 01:53:27 PM
2nd ad in search list does not appear? can you send link?
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 04, 2020, 02:08:47 PM
https://emprego.classmega.ao/search


and Banner Item Description, also does not show the adsense ad
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 04, 2020, 05:33:51 PM
Add this to your style.css:
Code: [Select]
.banner-theme.not767 {display:block!Important;}
Banners are hidden on mobile by default on all the themes

I can see that all listings are shown on search page, even 2nd one.
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 04, 2020, 10:02:26 PM
I'm referring to the banner for adsense
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 05, 2020, 10:19:05 AM
@Lucasdelton
I have not found any such banner on your site.
Note that not all banners may be put directly into theme, some of them are as placeholders, sometimes for future development, sometimes for users to allow do them their mods.

Go to search_gallery.php in theme folder.
Bellow following line:
Code: [Select]
<?php careerjob_draw_item($c'gallery'); ?>
Put following code:
Code: [Select]
    <?php if($c == 2) { ?>
      <?php echo careerjob_banner('search_list'); ?>
    <?php ?>
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 06, 2020, 11:01:04 PM
it's just missing Banner Item Description
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 07, 2020, 01:22:42 PM
Let me check that
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 09, 2020, 05:45:37 PM
Hi, I didn't get any more feedback from you
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 10, 2020, 12:17:31 PM
Sorry for delay, open your item.php and find line:
Code: [Select]
<?php if(careerjob_field_education($item_extra) <> '' || careerjob_field_education($item_extra) <> '') { ?>
above this line add:
Code: [Select]
<?php echo careerjob_banner('item_description'); ?>
I think it's best position for this banner.
I would also update style.css, line .banner-theme.banner-item_description   .... having margin bottom of 20px instead of 0 there
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: Lucasdelton on November 10, 2020, 12:53:18 PM
the ad already appears but cuts on the side, just like Banner Search Bottom.
Title: Re: carrerjob doesn't show ads in the mobile version
Post by: MB Themes on November 10, 2020, 04:14:19 PM
@Lucasdelton
Make sure to properly format the ad (float, display, margin, padding, ...)