The tag has no wiki summary.

learn more… | top users | synonyms

6
votes
1answer
152 views

Any alternate TinyMCE4 themes / subthemes?

TinyMCE4 in WordPress 3.9 has some cool changes, but it seems to have only one "theme" included. Is there any way to make a sub-theme of the theme defined by CSS, and theme.js in ...
5
votes
1answer
220 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
2answers
1k views

Is it possible to change the attributes of a registered style or script before it fires?

I'd like to modify the properties of a registered style(or script - same applies) before it's been loaded. Right now i'm trying to modify a registered style just before it gets enqueued, so i can ...
4
votes
1answer
4k views

Why is style.css not being enqueued?

I got a pretty basic theme and just found out my style.css file doesn't get loaded into the <head>. I already searched around but can't find out, why it's not loading. I inspected the global ...
4
votes
1answer
160 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 ...
3
votes
2answers
107 views

How to automatically highlight syntax of code in a post?

I post my codes from different programing languages. Now, I want to highlight syntax of codes with different colors. But, doing it manually is time consuming. Is there any plugin or method which could ...
3
votes
2answers
84 views

Use a higher than 230px logo image with 2013 theme

UPDATE: My question is not offtopic, because WordPress crops the logo image and not just CSS. I'm trying to use a 4724 × 2362 png image as a site logo at the top of a WordPress website with the stock ...
3
votes
2answers
1k views

Style the text before <!--more--> in single.php

I'd like to style differently the content before the link, but in single.php. To be more specific, all my posts on the homepage only have a summary, and the rest of the text is cut thanks to the use ...
3
votes
2answers
451 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 ...
3
votes
1answer
116 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; ...
2
votes
2answers
1k 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 ...
1
vote
3answers
162 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" ...
1
vote
1answer
294 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 ...
1
vote
2answers
135 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: ...
1
vote
1answer
1k 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 ...
1
vote
3answers
114 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 ...
1
vote
1answer
483 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 ...
1
vote
1answer
435 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?
1
vote
2answers
50 views

Adding custom styles to elements, without creating new elements

So Im using the tiny_mce_before_init filter to added a few classes to the wp_editor and am getting unexpected results. I havent used this before, but from what Im reading and what my peers tell me I ...
1
vote
1answer
12 views

Which filter/hook to use for styling comments?

I would like to create a plugin that modify the styling of the comments section. Given that some users may be using other plugin to replace the default commenting system (facebook, disqus, ...), what ...
1
vote
0answers
71 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 ...
1
vote
1answer
769 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
vote
2answers
975 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 ...
0
votes
2answers
912 views

Formatting Standard Post Format

I'm looking to display an image for all the "standard" post formats on my site. I have done some research on how to add quote, video, photo, etc and have been able to implement these images into the ...
0
votes
2answers
497 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
175 views

Enqueuing a script before anything else

I wondered if it was possible to change the order in which a script is enqueued. I ask this because I wish to include the HTML5 enabling script but it needs to be included before any styles. Is ...
0
votes
2answers
85 views

How to change the default class for the widget title?

I would like to change the default class of the widget title. Currently it is h2 and I would like it to be h3. I have seen there is the option of customizing css so that h2 looks like h3. #sidebar h2 ...
0
votes
1answer
105 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 ...
0
votes
3answers
159 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
259 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
113 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
133 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
76 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 ...
0
votes
2answers
46 views

Questions regarding add_meta_box()

Registered a custom post type (xyz) and after that added a meta box using this excellent Tuts+ tutorial, so then I can reduce the usage of 'Advanced Custom Fields' where I can (but I love ACF most). ...
0
votes
1answer
62 views

How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?

I have a blog at www.exeideas.com where I am sharing codes snippet too. I am new to WordPress and migrated from Blogger. So now my all codes shared in posts stop working. When I check my codes then ...
0
votes
1answer
33 views

How To Style Links in Content Area With <span> Tag Automatically?

This is like a suicide mission for me. I have to avoid CSS because I want to build a website that will help me to create HTML templates for email campaigns. Email readers can't read CSS, so CSS is ...
0
votes
1answer
30 views

Blocking Plugin Css to load custom in template directory

What is the most popular method to stop/block a plugin from loading their css styles ( located in the plugin directory) so that I can use the custom copy I made (located in my template directory). I ...
0
votes
2answers
19 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
40 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
2answers
53 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
49 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
1answer
56 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
2answers
5k views

Styling Contact Form 7 fields [closed]

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
2answers
227 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?
0
votes
2answers
455 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 ...
0
votes
1answer
654 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 ...
0
votes
2answers
708 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
105 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 ...
0
votes
1answer
255 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 ...
0
votes
2answers
349 views

jQuery Drill Down iPod Menu FOUC and Selecting Current page

I'm using Drill Down Ipod Menu and I'm really like the style of showing submenus , but I have two problems with it. 1-when i load a page it shows all submenus open for a second and I experience a ...