Tagged: x
-
AuthorPosts
-
September 16, 2016 at 9:16 pm #1178955
AspariParticipantHello 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.
September 17, 2016 at 2:15 am #1179132
RadModeratorHi 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!
September 17, 2016 at 2:44 am #1179154
AspariParticipantAwesome, 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.
September 17, 2016 at 4:06 am #1179191
RadModeratorHi 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!
September 17, 2016 at 5:37 am #1179252
AspariParticipantHmm, 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.
September 17, 2016 at 5:58 am #1179257
ThaiModeratorHi 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 / passwordDonβt forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
September 17, 2016 at 7:33 am #1179301
AspariParticipantThis reply has been marked as private.September 17, 2016 at 7:43 am #1179303
ThaiModeratorHi 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-generationsCheers!
September 17, 2016 at 8:21 am #1179334
AspariParticipantAh 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!
September 17, 2016 at 8:36 am #1179342
ThaiModeratorYou’re most welcome π
If you need anything else please let us know.
September 17, 2016 at 9:05 am #1179360
AspariParticipantWill do, and thanks again!
September 17, 2016 at 7:17 pm #1179669
Rue NelModeratorNo problem.
If you need anything else we can help you with, don’t hesitate to open another thread. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1178955 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
