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

A A A

Please consider registering
guest

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
awpcp
Moderator
Moderators
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 (http://getfirebug.com/) 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:
25 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

Johnny B: 140

godie: 120

laburke: 94

NAIN KHAN: 93

salvig67: 84

kerdezo: 80

rude: 72

purplepaula: 72

WAYTOBAYWTB52: 71

gery: 71

Member Stats:

Guest Posters: 27

Members: 36528

Moderators: 2

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 6443

Posts: 29135

Newest Members:

Nelle Valliere, Ashish, Octavia Wilfred, Alex, sahai office, Morg, Mike Russ, Sarah, Ariel, Gérald

Moderators: awpcp: 7530, AWPCP Support: 4388

Administrators: wpengine: 0, awpcp: 297

Skip to toolbar