The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

MailPress plugin: table inline style tag removed when sending the newsletter

I have coded my own MailPress theme for my newsletter using tables and inline styling for good look and feel of my newsletter. I have in the files header.php and footer.php html table code with inline ...
0
votes
2answers
52 views

Custom CSS at Appearance > Edit CSS is missing after update [closed]

A WordPress site that I have written a few CSS custom styles for has lost its custom styles. I previously wrote the custom CSS in the Appearance > Edit CSS section of the admin dashboard. But now that ...
0
votes
1answer
44 views

wp add inline style in loop

I want to add inline styles thanks to the wp_add_inline_style wordpress function. The inline styles will be added in a loop. In my case, I output an isotope grid in my loop and this grid can have ...
1
vote
0answers
47 views

How do I view registered syles and scripts for enqueue

I know that wp_register_style(), wp_deregister_style() and wp_enqueue_style() are used for css style registration and enqueue management. However, I am interested in viewing ALL registered styles ...
0
votes
2answers
17 views

is there a way to get all queued scripts/styles into a template without `get_header()`?

in my main plugin page i check if a certain page is visited if so, i load a certain template. in the following way: add_filter( 'template_include', array($this, 'includeTemplate'), 99 ); public ...
0
votes
1answer
25 views

Block wordpress style for my plugin admin page

I have my own style for my plugin, it works, but wordpress adds a style too, and the page is not looking very ok. Is there any way to block wordpress style for my plugin administration page?
0
votes
1answer
32 views

Syling Custom Fields echo's from from functions.php

With the help of User Borek I've managed to get Custom Fields displaying on my siteby putting the below in the functions.php: function custom_field_before_content() { if(is_page() || is_single() || ...
0
votes
0answers
51 views

Shortcode add styles to the <head>

I have shortcodes that has option for :hover color. Is there a way to include styles in the head of a page for each shortcode element to change its hover color? There can be any amount of this ...
1
vote
3answers
130 views

To enqueue or not to enqueue

What is the best way to link to a CSS file in WordPress? Method 1: Use the following whenever needed <link href="<?php echo get_template_directory_uri(); ?>/my-style.css" rel="stylesheet" ...
3
votes
1answer
65 views

How to modify/extend/override a core method?

This is my first post. In advance, thank you for welcoming me... Context When you enqueue style, you can output your css link into conditional comments. global $wp_styles; ...
0
votes
2answers
46 views

How To Protect Plugin Display From Being Affected By Theme's CSS

I am developing a custom wp plugin that is using shortcode to display table in the front end. But its front end display is affected by the theme's css. So it is always following the table styling that ...
0
votes
1answer
40 views

How to center oEmbedded content

I understand you have to paste the link that you're embedding without any code wrapping around it, but how do I force the embedded content to be centered? Currently, the default is aligning to the ...
0
votes
0answers
40 views

Add dynamically Get Request For Every links On the Site For Style Switcher

<?php session_start(); ?> <?php $_SESSION['sel_color'] = "blue"; if ( isset($_GET['color']) ) { switch ($_GET['color']) { case 'red': $_SESSION['sel_color'] = "red"; ...
0
votes
1answer
75 views

Custom colors for post rows based on post meta value

I'm trying to have the post background colors change depending on a meta value for the specific post type rather than using the post status. Looked everywhere and can't find a solution. (perhaps there ...
-1
votes
1answer
42 views

Where to add the code for an outer container in a theme?

I have a Wordpress theme installed (SimplePress) and I would like to add an outer container to it, and I don't know exactly in which file should I add the code. This is the code I tried to use: ...
0
votes
2answers
32 views

div having different appearances in different themes

I have a shortcode in a plugin that is supposed to display a div. The div can be styled in the settings. The problem is: the div has different appearance in different themes. This obvious is caused ...
0
votes
1answer
98 views

Multiple Block Quotes without using HTML

First of all, I have a client that has no HTML knowledge. He wants his all his posts to have a certain format where within the post body, he can add multiple pull quotes with different styles. Note ...
1
vote
1answer
260 views

Login Button CSS

I'm trying to find the Login button CSS code. I tryed this topic, but i think the path has changed after wordpress updated: http://wordpress.org/support/topic/how-to-change-the-login-button-color ...
0
votes
3answers
130 views

Using post_class to style posts indivdually

I have a homepage on which I want to display the latest post different from the other posts. I haven't used post_class and I am not sure how to. Would I be able to achieve what I want using ...
0
votes
1answer
55 views

Globally register styles but enqueue them selectively

I am trying to get my theme registered stylesheets in plugin, the purpose is I want to get all stylesheets in my plugin and then manipulate those registered styles. stylesheets registered via ...
0
votes
1answer
207 views

Load plugin scripts and styles only on plugin page

Hello wordpress users, I'm stuck with a problem while running 2 self made Wordpress plugins. I'll use the following code : define('PLUGIN_URL', plugin_dir_url( __FILE__ )); add_action( ...
0
votes
2answers
431 views

How to fix position of a picture(banner) in the header?

I have to add a banner to the right side of my wordpress site but the theme does not have any banner widget area. I want the banner to be aligned right in the header beside the logo. It should look ...
0
votes
2answers
99 views

How to add style to a string of text throughout WordPress website?

I am building a site for a friend, the site has launched, now he tells me he wants his site name to appear green everywhere it appears on the website. Immediately, I thought of the plugin SEO Smart ...
0
votes
1answer
241 views

How to change the menu color

I need to change the menu color of the wordpress 2011 theme to transparent. this is the header <nav id="access" role="navigation"> <h3 class="assistive-text"><?php _e( ...
1
vote
2answers
131 views

Hiding styles from Facebook

Some of my pages/posts have very short custom stylesheets at the beginning of them. I know this isn't great practice, but it's worked very well thus far. The problem, however, is linking on Facebook: ...
5
votes
1answer
178 views

How to work with custom styles saved in theme option?

I am creating a theme where user can save custom styles from theme customizer through settings API. Those style info are saved in options table as serialized data. When Custom skin is active I will ...
4
votes
1answer
135 views

localize inline css

I'm providing a theme setting to define a group of images for the frontpage background. On page load, I want to pick an image at random from this pool. My approach is to add a line of inline CSS ...
0
votes
2answers
4k views

Styling Contact Form 7 fields

We are using wordpress plugin contact form 7 and want to specify the width of the subject field (assume answer would apply to setting width of any field) and relocate the Your Email next to the Your ...
0
votes
1answer
102 views

Performance and styles not working fine after changing permalink structure

Fist I was using default option of permalink and everything was fine (speed is ok, my own created theme is working fine) but now I change default structure to post name structure of permalink now I am ...
-1
votes
1answer
141 views

CSS styling not working in a custom metabox

I have some difficulies styling Meta Box content of a custom post. No CSS styling is applied. I made a really simple testbased on what I have read on the other post here. metabox creation: ...
-1
votes
4answers
5k views

Change Twenty twelve theme background color

I use the twenty twelve theme and I would like to change the background color manually by modifying the right files in the plugins folder. However, I can not find what to change in the style.css file. ...
1
vote
1answer
650 views

Adding Custom Styles to the MCE dropdown toolbar

I am using the following code to add style drop downs the mce toolbar, I want to be able to add a h1 element with the drop down but my code isnt working, I have tried a couple of different ways but it ...
-1
votes
1answer
322 views

How do I change TinyMCE button “i” to create a i tag rather than em?

I want to give the "italic" button back the "styling" behaviour, rather than the spammy <em>. I want that button to print a <i> tag, rather than <em>. <em> tags became popular ...
0
votes
2answers
148 views

customize continue reading

This is the code of continue reading in function.php <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?> It has a class which ...
0
votes
1answer
117 views

Visual Editor: Paragraph styles appear to one admin but not to others

The first admin of my site has a full Visual Editor with style sheets. I create new users who are admins (their profile page has same settings with original admin) but they cannot set the style of ...
0
votes
2answers
205 views

How to format the first line of a post differently?

I'd like to have the first paragraph/sentence of my posts in their single.php page styled differently - say... bold. How do I go about doing that in the most efficient way?
1
vote
2answers
758 views

How can I add custom text styles to the visual text editor?

By default an author can select from Paragraph, Address, Preformatted, Heading 1, etc.. As an example I'd like the author to have the ability to visually wrap selected text in a tag, without ever ...
2
votes
2answers
771 views

How to implement different color schemes in your themes

This question is for theme developers. I know how to use the settings API to gather input data, but I was wondering what's the best way include the styles. Let's say you have 4-5 versions of the ...
0
votes
2answers
385 views

styles/default.css in markup, where does it come from? [closed]

I have the following line under the head tag but I don't have the file styles/default.css in my theme and consequently get a loading error in browsers. I'd like to eliminate this line but I don't know ...
3
votes
2answers
368 views

Sanitize User Entered CSS

Does anyone have any idea how to sanitize CSS entered via user input? I am concerned about cross-site scripting via CSS. I am using wp_filter_kses to clean up user entered HTML, but I need a like ...
0
votes
2answers
74 views

Styling Previous/Next Pages differently from Index

A friend of mine pointed me towards using child elements to style my index page so that I could have one loop and several different visual styles (a featured post, a smaller sub-featured post, and ...
1
vote
3answers
111 views

Style Differently Edited Posts

Is there any way to add class to edited posts in order to style them differently? If there is a way to do that without adding a class, this option would be much better. EDITED - IGNORE THE ABOVE ...
0
votes
1answer
553 views

Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed

I have many custom post types, including some introduced by plugin such as bbPress or WooCommerce. My standard stylesheet is growing large, so I thought to split it into multiple stylesheets ...
1
vote
1answer
870 views

Add stylesheets and js to template files when shortcode is used

After looking for days throught the net and no avail - i'd like to ask all of you guys. PROBLEM: i need to add custom code to the head of the file as part of shortcode use for my plugin. The same ...
0
votes
2answers
651 views

Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry

This is either something really simple that I've orchestrated into a complex problem or it really is a complex problem. I've decided to use pages to display information. If I go to a page called ...
0
votes
1answer
56 views

Dynamically determine URI to scripts and styles included with a class which could be added from plugin/theme/child theme/mu plugin

I'm working on a settings API class which I'd like to be able to drop into a plugin, wpmu plugin, theme, or child theme directory, and have it just work. My issue is that I'm having trouble figuring ...
1
vote
1answer
371 views

How to override my plugin's php classes with duplicates that are in my child theme folder

I have a child theme in wordpress and one of the plugins I am using is called jigoshop. I made a copy of a few php classes from the plugin and placed them in my child theme folder. I want these ...
0
votes
1answer
104 views

Locally change the font family [closed]

I'm using the standard Wordpress theme (WordPress Default 1.6 by Michael Heilemann). The standard font for my articles is a sans-serif font. I'd like to display, for a sentence only, a serif font ...
1
vote
1answer
361 views

Remove inline styles from the_content?

Is there a way to remove any inline styles made by the WP Editor i.e. Font Size?
0
votes
1answer
234 views

How to get sub-categories to display same look as there parents

so I am trying to use the category.php to do all this, and basically I have 3 main/parent categories, Dream it. Build it. Get The Hell Out. and will have many sub-categories under them. What im ...