Adding Ads to Pixel v2

Posted In Product Support
  • devdojo 2 years ago
    In the current release of Pixel Version 2 you may need to add a few fields in your admin settings. When you visit `/admin/settings`, you will need to scroll down to the bottom and add 2 new fields:
    
    ![screenshot 1 for new fields](http://i.imgur.com/BTAwdqv.png)
    
    And
    
    ![screenshot 2 for new fields](http://i.imgur.com/lrhzktM.png)
    
    > Note: You will need to add an empty object `{}` in options field 
    
    Then, with the theme you are using you will need to navigate to `resources/views/themes/default/partials/ads300x250.blade.php` and replace the contents with the following:
    
    ```
    @if (setting('ads300x250', ''))
    	<div class='ads300x250'><?= setting('ads300x250') ?></div>
    @else
    	<div class='ads300x250'>
    		<img src="/assets/default/img/ads300x250.png">
    	</div>
    @endif
    ```
    
    Then inside of `resources/views/themes/default/partials/ads728x90.blade.php` you will need to replace the contents of that file with:
    
    ```
    @if (setting('ads728x90', ''))
    	<div class='ads728x90'><?= setting('ads728x90') ?></div>
    @else
    	<div class="ads728x90">
    		<img src="/assets/default/img/ads728x90.png">
    	</div>
    @endif
    ```
    
    Now, if you visit your site and you have added your code into the new settings field you have created you will see your ad placements on your site.
    
    An update will be out this next week that will include these updates.
    
    Thanks :)

    In the current release of Pixel Version 2 you may need to add a few fields in your admin settings. When you visit /admin/settings, you will need to scroll down to the bottom and add 2 new fields:

    screenshot 1 for new fields

    And

    screenshot 2 for new fields

    Note: You will need to add an empty object {} in options field

    Then, with the theme you are using you will need to navigate to resources/views/themes/default/partials/ads300x250.blade.php and replace the contents with the following:

    @if (setting('ads300x250', ''))
    	<div class='ads300x250'><?= setting('ads300x250') ?></div>
    @else
    	<div class='ads300x250'>
    		<img src="/assets/default/img/ads300x250.png">
    	</div>
    @endif
    

    Then inside of resources/views/themes/default/partials/ads728x90.blade.php you will need to replace the contents of that file with:

    @if (setting('ads728x90', ''))
    	<div class='ads728x90'><?= setting('ads728x90') ?></div>
    @else
    	<div class="ads728x90">
    		<img src="/assets/default/img/ads728x90.png">
    	</div>
    @endif
    

    Now, if you visit your site and you have added your code into the new settings field you have created you will see your ad placements on your site.

    An update will be out this next week that will include these updates.

    Thanks :)

  • gheorghe-mereuta 2 years ago
    his error occurs
    http://joxi.ru/nAyQQ6QUxo8EAZ
    http://joxi.ru/ZrJ44j4UVEqX2j
    

    his error occurs http://joxi.ru/nAyQQ6QUxo8EAZ http://joxi.ru/ZrJ44j4UVEqX2j

  • devdojo 2 years ago
    Sorry, try again for switching:
    
    ```
    <div class='ads728x90'>{{ setting('ads728x90') }}</div>
    ```
    
    to:
    
    ```
    <div class='ads728x90'><?= setting('ads728x90') ?></div>
    ```
    
    And:
    
    ```
    <div class='ads728x90'>{{ setting('ads300x250') }}</div>
    ```
    
    with:
    
    ```
    <div class='ads728x90'><?= setting('ads300x250') ?></div>
    ```
    
    And you should be good to go :)

    Sorry, try again for switching:

    <div class='ads728x90'>{{ setting('ads728x90') }}</div>
    

    to:

    <div class='ads728x90'><?= setting('ads728x90') ?></div>
    

    And:

    <div class='ads728x90'>{{ setting('ads300x250') }}</div>
    

    with:

    <div class='ads728x90'><?= setting('ads300x250') ?></div>
    

    And you should be good to go :)

  • gheorghe-mereuta 2 years ago
    thanks a lot goes wrong
    

    thanks a lot goes wrong

  • gheorghe-mereuta 2 years ago
    in which the file must implement verification code ads?
    
    
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-1796711750088979",
        enable_page_level_ads: true
      });
    </script>

    in which the file must implement verification code ads?

  • gheorghe-mereuta 2 years ago
    circle
    
    We’re reviewing your site.
    
    Reviewing your site will take up to 3 days. We'll email you when we're done.
    
    Paste it into the HTML of http://nextapost.com, right after the head tag.

    circle

    We’re reviewing your site.

    Reviewing your site will take up to 3 days. We'll email you when we're done.

    Paste it into the HTML of http://nextapost.com, right after the head tag.

  • devdojo 2 years ago
    The files are the following:
    
    resources/views/themes/default/partials/ads300x250.blade.php
    resources/views/themes/default/partials/ads720x90.blade.php
    
    This will be different if you are using the `white` theme, you can change `default` with `white` above.
    
    I don't see that message of where it says 'Reviewing your site will take up to 3 days', if you are seeing that somewhere that is probably the ad network you are using. Which advertising platform are you trying to use? Let me know :)
    
    Thanks.

    The files are the following:

    resources/views/themes/default/partials/ads300x250.blade.php resources/views/themes/default/partials/ads720x90.blade.php

    This will be different if you are using the white theme, you can change default with white above.

    I don't see that message of where it says 'Reviewing your site will take up to 3 days', if you are seeing that somewhere that is probably the ad network you are using. Which advertising platform are you trying to use? Let me know :)

    Thanks.

  • peter-parker 2 months ago
    像素版本是您可以随时使用的版本。该 [essaypinglun](https://essaypinglun.wordpress.com/) 帮助我获得最新版本,我现在正在使用一天。

    像素版本是您可以随时使用的版本。该 essaypinglun 帮助我获得最新版本,我现在正在使用一天。

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)