Current User: Guest
Please consider registering

 
Search Forums:


 




How do I disable AWP in a template or part of a template?

Post

Aaron - Admin

3:28 pm - January 11, 2009

posts 382

 
1

Adding the following code to your theme will disable AWP, <?php do_action('awp_no');?>

Adding the following will re-enable AWP. <?php do_action('awp_yes');?>

Mike - Guest

8:57 pm - January 19, 2009

 
2

That did the trick.

What I wanted was for the inline option to work on every page (with posts) except the front page. More importantly I wanted inline working on my authors page.

So thanks. Works great.

Mike

cK ! - Guest

9:53 pm - October 11, 2009

 
3

Is there a way to do it the other way? So, that it is disabled by default and you can insert code to enable AWP in a certain section?

Aaron - Admin

2:15 pm - October 24, 2009

posts 382

 
4

You can just stick the disable part in the header so it will disable everything up to the part you enable it.

You can enable and disable AWP multiple times on the page.



Reply to Topic: How do I disable AWP in a template or part of a template?

NOTE: New Posts are subject to administrator approval before being displayed

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
2 + 6
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

8 Guests

Forum Stats:

Groups: 1

Forums: 3

Topics: 186

Posts: 487

Membership:

There are 1163 Members

There have been 149 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

jakemc - 5

fromgrannie - 5

flash - 4

BAM - 4

Siam - 4

tombyrnes - 4

Administrators: Aaron (382 Posts)