How to use Custom Styles with AWPCP | FAQ | Support Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
How to use Custom Styles with AWPCP
April 13, 2011
9:54 pm
Forum Posts: 7530
Member Since:
August 9, 2013
sp_UserOfflineSmall Offline

Starting with 1.8.0, AWPCP incorporated the ability to pull styles from a custom CSS file that isn't overwritten on upgrade. For those with a quirky theme, or the desire to heavily customize AWPCP's look to match their site, this is great news...

How to use the AWPCP Custom Style CSS file:

1) Create a file called awpcp_custom_stylesheet.css under wp-content/plugins on your site. This location won't be overwritten by any plugin or Wordpress on upgrade.

2) Place any style changes you need in this file. It will be loaded such that these changes will take precedence in the CSS hierarchy over other styles in AWPCP.

How do I know what I want to put in this file?

- Good question! Use Firebug ( with IE or Firefox to determine what styles are being applied to any given element. Once you know what style is causing an issue, you can override it via the custom style CSS file.

What if I see custom hard-coded styling I can't override?
You may see something like this:

<div class="displayaditemsodd"><div style="width:80px;padding:5px;float:left;margin-right:20px;">

That is controlled from Settings->Ad/Listing settings by altering the HTML templates for Single Ad or Ad Listing. As long as you create valid HTML in there, you can change the templates to be anything you like.

Thanks to MariasC for the tip on that last point!

Forum Timezone: America/Denver

Most Users Ever Online: 163

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Johnny B: 140

godie: 120

kerdezo: 99

laburke: 94


salvig67: 84

rude: 72

purplepaula: 72


gery: 71

Member Stats:

Guest Posters: 32

Members: 37963

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6980

Posts: 31071

Newest Members:

realtoxic, Coen Deurloo, Ewa, nailsjul24, marnails89, Rahul Bose, Nick, natinail52, I love James Bond

Moderators: awpcp: 7530, AWPCP Support: 5262

Administrators: wpengine: 0, awpcp: 298

Skip to toolbar