Support Forums - Classified Ads Script Osclass

General osclass questions => General discussion => Topic started by: PeterB on January 27, 2021, 01:42:27 PM

Title: Add script into <head> of items page
Post by: PeterB on January 27, 2021, 01:42:27 PM
I would like to add a script between the <head> tags of my site. Preferably just the items pages.

The plugin that is available is not working for me, unfortunately. Could anyone please give me a quick breakdown on how to do this manually? Thanks very much.
Title: Re: Add script into <head> of items page
Post by: MB Themes on January 27, 2021, 02:14:12 PM
@PeterB
You may find head tags in oc-content/themes/{your theme}/head.php
Title: Re: Add script into <head> of items page
Post by: cartagena68 on January 27, 2021, 02:34:43 PM
If you need to add the script only in item page you need to add it between this code

Code: [Select]
<?php if(osc_is_ad_page()) { ?>
<script></script>
<?php ?>