Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to register widget below posts ?


  #1  
Old Oct 11, 2010, 06:14 AM
ajinkya's Avatar
ajinkya
 
13 posts · Sep 2010
India
Hiii
Is there any way to create new widget area below posts ? in atahualpa theme on ma blog
So that , i can display ads below every post ,not in homepage
but on after every post when i click on each post link
multiple widgets ?
  #2  
Old Oct 11, 2010, 07:47 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Probably the easiest way would to create the new widget area at ato->Style & edit CENTER COLUMN->Content BELOW the LOOP and then use widget logic to not display it - or you could wrap the new widget area code in a php IF checking to see if it is the front page or not.

Personally, I never go back to sites that intersperse AD's in, or in between posts.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 2, 2010, 06:39 AM
ajinkya's Avatar
ajinkya
 
13 posts · Sep 2010
India
thanks a lot , i managed to tweak loops
But can i insert a "widget" so that , in the future i wont have to play with loops again ?
In this way , i can easily edit the codes in widget page of my blog
Just like in previous post , you gave code of adding 4 column footer
similarly what 's the code so that ,the widget will show up after every post , but before comment form
Thanks in advance !
  #4  
Old Nov 2, 2010, 10:03 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm not clear on the first part of your reply
Quote:
thanks a lot , i managed to tweak loops
But can i insert a "widget" so that , in the future i wont have to play with loops again ?
as for putting a widget area in the actual post, just put the code in 'The LOOP' after the line
HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 5, 2010, 09:39 AM
Pierre's Avatar
Pierre
 
36 posts · Aug 2010
Montpellier, France
Hello

I would like to insert Adsense script into my blog posts.

<script type="text/javascript"><!--
google_ad_client = "pub-10xxxxx0";
/* 728x15, date de création 05/11/10 */
google_ad_slot = "8xxxxxx44";
google_ad_width = 728;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


The thing is, depending on the context, I would like to be able to insert it or not, and where to. I think a "code" inside the post (just like we put [slide] for slideshows for example)

Even though I understand you are against it, could you please help me out ?

Thanks

Pierre
  #6  
Old Nov 5, 2010, 11:39 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can add it in 'The LOOP' (ato->Style & edit CENTER COLUMN) and put php logic around it to determine when to 'fire it off'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Nov 7, 2010, 03:21 AM
Pierre's Avatar
Pierre
 
36 posts · Aug 2010
Montpellier, France
Hello Juggledad

Thanks for your answer, the only thing I'm missing now is the "php logic" you mention.

Thanks again

Pierre
  #8  
Old Nov 7, 2010, 12:18 PM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You need to determine what the conditions that will cause you to want to display the AD. Then you write a php IFstatement to match thous conditions. If you are going to test for things like if you are on the front page (is_front_page()) take a look at the wordpress codex to see all the predefined functions you can use.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Apr 17, 2012, 06:03 AM
Hody's Avatar
Hody
 
156 posts · Apr 2012
I´d created a widget now, but have some more styling issues, posted here
__________________
...that I rock, doesn´t mean I am made of stone!
My Blog: Diary of a Fatman - Run Fatboy Run! - Tribe Online Magazine - Freiburg

Bookmarks

Tags
post body, registration plugin

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
5000+ members deleted, please register again Flynn Atahualpa 3 Wordpress theme 2 Jul 20, 2010 04:37 PM
Login and Register into the header or switching header-grafik fox-didl Header configuration & styling 0 Jan 24, 2010 06:56 AM
"lost" the atahualpa login/register widget. can I get it back easy? manyleaves Sidebars & Widgets 3 Jan 17, 2010 08:40 AM
wordpress-plugin/register-plus/ Lisa Plugins & Atahualpa 0 Mar 3, 2009 03:01 AM
Adding text to "register" page. WaterfrontGazette Atahualpa 3 Wordpress theme 3 Dec 15, 2008 07:30 AM


All times are GMT -6. The time now is 10:22 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.