Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1178955
    Aspari
    Participant

    Hello Themeco,

    I was wondering if I could have some assistance with something I am unsure of where to start in pulling my idea off or how to do it entirely.

    My website is: http://pointzero.online/

    I’m just starting out with the website and have a little bit of content but what I was wondering is if I could generate advertising banners within the front page category feed along with the articles. To elaborate further, you notice all the articles generating on the first page, right? I wanted to know if there were a way where alongside the articles, taking up the same amount of space as an article post would, a banner ad would be able to be inserted at random positions within the span of 5-6 articles for example.

    I imagine it would have to do with modifying the PHP file for generation of the feed, but I’m not sure where to start. I have a child theme already set up as I’ve made a few small modifications already.

    #1179132
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    Sure, you may provide your embed codes for the ads and where you wish to place. Can be done through filters or templates. And bit by bit, we’ll guide you on how to do it πŸ™‚

    But, please note that ads aren’t responsive. It may respond well on smaller devices, they have fixed sizes.

    Thanks!

    #1179154
    Aspari
    Participant

    Awesome, thank you!

    Essentially I was thinking this or maybe a little bit less on height:

    <a href="//www.bluehost.com/track/pointzeroonline/" target="_blank"> <img border="0" src="//bluehost-cdn.com/media/partner/images/pointzeroonline/160x600/bh-160x600-01-dy.png"> </a>

    The picture’s dimensions aren’t too crazy, but using a picture ad that has less height wouldn’t be an issue neither as this affiliate multiple different sizes to choose from should I go lower on size. The kind of thing I was hoping for was generating a post box like how the posts have for their own “entry-wrap”.

    A secondary idea I thought of would be to having a smaller block sized banner to use in place of the image an entry-header would encompass, and then it’s description in the entry-wrap whilst not using anything for the entry-footer.

    Anything essentially that’s least taxing and time consuming. This in itself I believe is a lot to ask in the first place and you guys aren’t my personal web designers, so which ever method is easiest will do.

    #1179191
    Rad
    Moderator

    Hi there,

    It’s a vertical ad, it can be added to the text widget in a sidebar. Or floating along with content (text wrapping). But since your pages are all archive type, sidebar widget is easier to do.

    1. Go to Admin > Appearance > Customizer > Layout & Design > Content Layout and choose Content Left, Sidebar Right

    2. Go to Admin > Appearance > Customizer > Blog > ARCHIVES > Layout and choose Use Global Content Layout

    3. Then go to Admin > Appearance > Widgets and add text width on main sidebar. And within the text sidebar, please add your embed code.

    Please note that archive pages have no entry-wrap, single page and post has it. It’s either use sidebar as above, or use the content filter like this.

    Please add this code to your child theme’s functions.php

    add_filter('the_content', 'embedded_ads', 99);
    
    function embedded_ads ( $content ) {
    
    if ( is_page() || is_singular('post') ) {
    
    return $content.'<a href="//www.bluehost.com/track/pointzeroonline/" target="_blank" class="vertical_ads_right"> <img border="0" src="//bluehost-cdn.com/media/partner/images/pointzeroonline/160x600/bh-160x600-01-dy.png"> </a>
    <style>@media ( min-width: 768px ) { .vertical_ads_right{ float:right; } } </style>';
    
    }
    
    return $content;
    
    }

    Mockup design will be more helpful πŸ™‚

    Cheers!

    #1179252
    Aspari
    Participant

    Hmm, I’ve hit a lock at #3. I don’t have any widgets rendered in the preview and am not sure how to render them or activate them.

    #1179257
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link login to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1179301
    Aspari
    Participant
    This reply has been marked as private.
    #1179303
    Thai
    Moderator

    Hi There,

    I’ve just added the text widget to the main sidebar.

    Please take a look:

    – Widget: http://pointzero.online/wp-admin/widgets.php
    – Banner: http://pointzero.online/general/pokemon-generations

    Cheers!

    #1179334
    Aspari
    Participant

    Ah ok, that’s interesting. I didn’t think of doing that!

    More or less I can probably remove the widgets I don’t really need, or modify them a bit, but awesome! I forgot all about the sidebar setup.

    Thanks guys, this’ll definitely do!

    #1179342
    Thai
    Moderator

    You’re most welcome πŸ™‚

    If you need anything else please let us know.

    #1179360
    Aspari
    Participant

    Will do, and thanks again!

    #1179669
    Rue Nel
    Moderator

    No problem.
    If you need anything else we can help you with, don’t hesitate to open another thread.

  • <script> jQuery(function($){ $("#no-reply-1178955 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>