Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation semantics (the look and formatting) of HTML output, usually via Themes. When you have to use this tag, then there's a high chance that your question is off topic on this SE network site.

learn more… | top users | synonyms

0
votes
1answer
480 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
5
votes
3answers
199 views

how to include other plugins css files in a shortcode?

I've coded a plugin that creates a shortcode, among other things. That shortcode expects a post_id parameter, it extracts the content of that post and it returns the filtered content of that post (e.g....
0
votes
0answers
15 views

Why are the author and the date not displayed next to the avatar in comment section?

I got the following code: jsfiddle.net/xg0waxL7 In this Fiddle it looks good but the problem is that WordPress displays just the bottom comment like I want it: prnt.sc/b7yaq6
-1
votes
1answer
17 views

How can I get rid of the distance when I'm using list-style-type: none? [closed]

I am using the following code (output html) to get my comments displayed. But there is a space because of the list-style-type: none; I used. How can I get rid of this? This is the fiddle
-2
votes
1answer
446 views

How to add an image as a bullet point in a specific WordPress widget? [closed]

I am using a widget to show latest tweets in my blog. The widget shows latest tweets as a list item. The default list bullet point (black square bullet point) of the theme is shown. I want to change ...
-1
votes
2answers
38 views

Get post format and use it as a CSS class in different spans

I use a <span> inside the loop and I would like to get each post format the post is containing as a class in separate spans. Example: If the post format is video and private: I would like to ...
-1
votes
2answers
123 views

how to include other jquery file and css file in wordpress plugins

I have jquery file like as follows "portfolio.css" "jquery-ui-1.8.18.custom.css" "portfolio.js" I want to include these files into my plugin... if anyone have solution for how to include above ...
-1
votes
2answers
30 views

Load files content [closed]

I would like to load a css file in my Wordpress plugin by php. First I tried file_get_contents: $stylesheet = file_get_contents(plugins_url('assets/css/fonts.css', __FILE__ )); But than I get this ...
-1
votes
1answer
18 views

Adding logo to Wordpress header

I want to add a logo to my header for a website im building, where in this code would I put the image URL? The theme im using in Bones. <!doctype html> <!--[if lt IE 7]><html <?php ...
0
votes
1answer
33 views

Wordpress archive page showing 404 Error [duplicate]

This is the code for an archive page on my website, when I try to open this page, it brings up a 404 error and doesn't display any content. Is there a problem in this code that is stopping it? I am ...
-1
votes
3answers
35 views

Using PHP for background-image property [closed]

I'm building a gallery page for a website and want to use the images from post types as background images with lightboxes. The code im using currently is this: <div id="primary" class="content-...
1
vote
1answer
22 views

How do add a the style-mobile css from the main theme to the child theme?

I've only found one post on this and the OP asked for clarification, but didn't get any: How to enqueue both style.css and style-mobile.css in child theme I'm using a pretty standard theme and have ...
20
votes
7answers
31k views

How do you avoid caching during development?

Is there a simple way do prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my ...
2
votes
1answer
136 views

WordPress Shortcode and Dynamic CSS

I have a question I would like to ask to the WordPress developers, Usually when creating a shortcode that need to generate custom css how do you proceed? For example a simple button shortcode with ...
2
votes
3answers
42 views

Wordpress loop specific thumbnail size

That's my loop: <main id="main"> <?php // the query $args = array('posts_per_page' => 10 ); $the_query = new WP_Query( $args ); ?> <?php if ( $the_query-...
0
votes
1answer
30 views

Widget text color change

hello i have this site and in the footer section there is the recent posts widget with the grey colored text. I wish to change it to white, i tried adding some custom css code in the theme child with ...
0
votes
2answers
27 views

Display post formats differently on index.php (loop in function)

I'm a newbie-- please bare with my ignorance here. I've been trying to read other questions about this but so far I can't wrap my head around this. I'm hoping to display post formats differently on ...
0
votes
0answers
36 views

How to include JavaScript script only on specific page [duplicate]

I am creating my own widget. I need to use custom css and js files. I have used wp_register_style`wp_enqueue_styleandwp_register_script\wp_enqueue_script` functions in order to register custom styles ...
0
votes
2answers
71 views

Ideal inline dynamic CSS injection

There is a code in here that dynamically load custom script. <?php function my_styles_method() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/css/...
1
vote
1answer
147 views

Adding inline styles from a widget

I'm working on a theme that has an optional widget to allow users to put some site elements where they want. One of those is a list of social media icons. These are font icons, so they can be styled ...
-4
votes
1answer
27 views

How to make a page extend full screen [closed]

For some reason my wordpress theme has invisible margins on both sides of the page, forcing all my content into the middle. Example.
-3
votes
1answer
47 views

Suddenly, all links in #content div are not clickable, but I don't see any z-index bug? [closed]

Following a bunch of seemingly harmless plugin updates, I suddenly have a weird bug. All of the links in my #content section are now unclickable, although the links in my sidebar, header, footer, etc....
1
vote
1answer
30 views

Trying to properly register and enqueue stylesheet in WP but nothing is rendered

I'm told it's very important to register and enqueue styles and scripts in WordPress even though it's a real pain in the behind. I had no problem with the scripts however when I try the styles, ...
1
vote
0answers
36 views

Following Web Performance Optimization techniques to output static and dynamic css

I have always felt the way styles are handled in WordPress is not optimal regarding the web performance optimization (WPO) techniques that are related to css. From a theme developer point of view, ...
2
votes
1answer
45 views

How to target first img in every wordpress post with CSS [closed]

I am trying to target first image in every post. The example post where I am trying to perform this is here. So I tried to use first-of-type like this .single-post .entry-content img.aligncenter:...
0
votes
1answer
44 views

inline css causes multiple copies [closed]

This is a question that' stumpled me and I don't know how to ask the right question. If the question is labeled incorrectly, please rename it. I'm using an inline CSS to make the featured image a ...
0
votes
0answers
50 views

How to stop printing header, footer, sidebar and other items (Tesseract theme)?

My screen pages look fine. All elements on a page look like they will print on one page. When the page prints, the header, menu (drop down), footer, social media icons at bottom (also showing link url)...
0
votes
3answers
73 views

Changes in enqueued / registered stylesheet paths not updating—why?

I'm attempting to modify a WordPress theme so that it appends a version number to a particular stylesheet. This is all done on a local development machine, tested on a staging server, too, for good ...
0
votes
4answers
40 views

Hide Image On Wordpress On Single Page [closed]

Sorry, I know this kind of question has been asked before but I can't quite figure it out. I'm trying to hide the city image on this page: http://learnenglish20.com/buy-tokens/ I put this CSS in ...
0
votes
2answers
26 views

How can I alternate styling of images in a post? [closed]

I'm working on a theme for a travel blog and the author likes to insert small images in the text of their posts (an example is here). I want the images to alternatingly float left or right (so the ...
2
votes
1answer
1k views

Using PHP to toggle stylesheet and header image, set in cookie

I haven't done a lot of work with cookies or Wordpress before so I think I've been a bit over-optimistic in my quest :p I have created two themes for my site, night and day. I would like the user to ...
0
votes
0answers
81 views

How to include jQuery UI smoothness theme - without conflicting with Contact Form 7

After copying the following HTML-code from jQuery UI selectmenu example into my twentythirteen-child/front-page.php file: <form action="#"> <fieldset> <label ...
1
vote
1answer
763 views

Theme Options Page - User Updates Logo

I'm a newbie to WordPress Development so bear with me. Site: https://wordpress-portfolio-zacnespral21.c9.io/ On the site above I would like to add an option in the themes options page for the user ...
0
votes
1answer
20 views

How to get dynamic template-function generated CSS into HEAD?

In a WordPress theme I have a custom function that generates some HTML and CSS based on factors on the page. Previously I had simply dumped the generated CSS into embedded <style> tags. However, ...
0
votes
1answer
59 views

A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom

Everything was working well, but somebody wrote a post with the following inside: <iframe blablabla (a video) </iframe> <div style="clear: both; height: 3px; width: 592px;"></div>...
0
votes
0answers
15 views

Post style in custom wordpress theme

I've made up a custom WordPress theme. So far everything went quite smooth but now I want to update the blog and the styles selected in the backend don't show up at the front. For example: I center ...
0
votes
0answers
17 views

Click to expand menu

I have the following menu in Wordpress: https://jsfiddle.net/L3y2rno8/ (renderd HTML) The menu is using a custom walker in my theme functions.php: function wp_nav_menu_attributes_filter($var) { ...
0
votes
1answer
49 views

jQuery accordion menu

So I have just started developing a theme with _s (underscores) as a basis. For three days straight (almost) I have been trying to make an accordion menu sort of like this: Example: https://codyhouse....
0
votes
2answers
51 views

Relative post date in recent posts list

I have basically worked on this all night and I realize I am quite stuck. I have a sidebar in my wordpress theme that displays the most recent posts. The sidebar looks like this: Below each title ...
0
votes
1answer
27 views

TwentyFourteen Theme : Changing grid layout

I have been plugging away making my new site and it is going great with only one issue so far. How would I go about changing the featured posts grid so that instead of displaying 3 featured posts per ...
0
votes
4answers
719 views

How to activate the child theme in Wordpress?

I create a new style.css and use it in child theme. And I create a new folder in wp-content and name it as themename-child and upload the style.css that I created. Now, I go to wp dashboard -> ...
1
vote
2answers
162 views

Multisite domain mapping breaks CSS

I have set up a multisite (sub directories) and all my plugins/CSS was working fine. Then I added domain mapping and managed to point a domain example.com to a site ID 4. All still working fine. ...
25
votes
5answers
22k views

best way to overide plugin CSS?

currently, I use CSS specificity to override plugin styles. I prefer this to editing the plugin as it makes for less headaches when you update. What would be nice is if my style sheet loaded after ...
0
votes
1answer
67 views

LESS not working in WordPress [closed]

How to run the CSS preprocessor (LESS) in WordPress? I'm trying to apply LESS in my child theme. I create variable.less and place it in the child theme folder css/less/variable.less and I call this ....
0
votes
1answer
28 views

How can I add a class to particular paragraphs in my post?

The effect I'm looking for in the end is to have the first line in some paragraphs bolded. These would be the first paragraph of each section in my post. This kind of effect is used on this Bloomberg....
1
vote
1answer
2k views

wp_enqueue_style with style.php and Wordpress functions

I use wp_enqueue_style to add my stylesheet, like this: <?php wp_enqueue_style( 'theme-style', get_template_directory_uri() . '/style.php', false, '1.0', 'all' ); ?> It works fine BUT I need ...
-4
votes
1answer
42 views

WordPress Custom Fonts Problem! [closed]

I added custom fonts on my website! Its based on Genesis Framework.More then 15 days web fonts show every where,suddenly fonts missing but i checkout my fonts link and fonts deceleration on CSS its ...
-3
votes
1answer
28 views

Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size

I'd like to hide the site title that appears on the sidebar on a twentyfifteen theme WordPress website when viewing it in a desktop display, but have it show when the display is fitted for mobile or ...
2
votes
2answers
3k views

Theme Customizer - Dynamic CSS PHP File

I've recently switched over from using a custom class to enable a theme options panel to the built in Theme Customizer in Wordpress. All is going fairly well - I've got live preview working but I'm a ...
0
votes
0answers
19 views

Wordpress functions in CSS?

I'm developing an audio player plugin and I'm trying to figure out how to make the links work on any install. I've used wp_enqueue_style('player', plugin_dir_url( __FILE__ ) . 'css/player_style.css'...