All Questions
Tagged with css customization
147 questions
32
votes
2
answers
48k
views
Where are Additional CSS files stored
This image shows the Additional CSS feature in Wordpress. I'm trying to find the file that stores the additional CSS, but can't seem to find it anywhere - I've searched almost every folder in wp-...
22
votes
2
answers
1k
views
Is it ever okay to include inline CSS in plugins?
Normally in a plugin I would add styles using wp_enqueue_style. However, I am currently creating a plugin that only needs a few lines of CSS and I am wondering if it might be better to serve the ...
20
votes
2
answers
13k
views
How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)
I am upgrading Font Awesome 4 to version 5 which introduces both integrity and crossorigin attributes to the <link rel="stylesheet"> markup.
Currently, I am using:
wp_register_style('...
19
votes
4
answers
2k
views
Customizing a WordPress theme without changing it?
I have found and downloaded a theme. However I want to tweak the CSS some to change the design, colours etc. a bit. How should I go about doing this, while still being able to update the theme without ...
7
votes
3
answers
13k
views
How to include own css on wordpress tinymce editor?
I have added some text on tinymce editor on load.
(Every time you click on Add new the tinymce editor load with this text.)
but problem is how to enable css class which are using in default text.
...
5
votes
2
answers
6k
views
How to customize the default HTML for Wordpress Attachments
I'm using Wordpress 3.0.1 (most recent as of now) and working around the Whiteboard theme.
It seems that for attachments (images, specifically), Wordpress generates the HTML automatically and it ...
5
votes
2
answers
102
views
Is this the best (and only) option to style CSS for a given post type?
First of all thanks for reading, and my apologies for my lack of knowledge.
I have a WP site running with a theme and a child theme. I run it in 3 languages Spanish, English and Portuguese; and for ...
4
votes
3
answers
13k
views
How to add extra attribute to stylesheet link?
Following Keith Clarks advice, i'd like to load my fonts asynchronously. I try to achieve that by adding:
wp_enqueue_style( 'font-awesome', URI . '/fonts/font-awesome/css/font-awesome.min.css' );
...
4
votes
2
answers
4k
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
3
answers
4k
views
How to add 'class' attribute into shortcode [audio]?
I would like to style two MediaElement players on the same page differently, and figured out the easier way to do this (compared to adding a completely new shortcode and enqueueing a new stylesheet, ...
3
votes
1
answer
3k
views
Adding HTML within an image title attribute
I am using some jquery which applies an overlay on an image on hover. The script uses content from the image's title attribute to display over the image. When I tested this locally, it seemed to work, ...
3
votes
2
answers
597
views
FireFox Inspector :: find CSS file related to <div>
I'm creating my new website and I would like to change the background colour. Through FireFox Inspector I nailed the CSS line that manages the colour, it's background-color: #fff;
I now have to ...
3
votes
3
answers
2k
views
Add nav menu CSS class to body
I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes.
For example, if the current menu item has a CSS class "...
2
votes
2
answers
1k
views
How do I add JavaScript that will execute on all my sites in Multisite?
We are creating an internal network of sites using MU and there are some small things we would like to have globally on all the sites without having to add them individually for each site. I would ...
2
votes
1
answer
1k
views
What will happen to the additional CSS when the theme is updated?
I have a premium theme installed and I need to add some custom CSS to add some new styles.
So what will happen if I add the CSS to the additional css section in the customize? Will I lose them when ...
2
votes
1
answer
6k
views
Add CSS animation as Preloader to WordPress
I found a CSS animation snippet on Codepen, and would like to add it in my WordPress site for preloader animation, but I couldn't find any related help or plugin that would allow me to add a Preloader ...
2
votes
2
answers
10k
views
wp_head() not inserting the default stylesheet style.css
I have a custom theme with just a name in its style.css. I've activated it in admin which shows it just fine.
In the index.php just <?php wp_head(); ?> and it doesn't output the line that is ...
2
votes
2
answers
64
views
First completely customized theme, where should I start?
I've been using the Genesis Framework to build custom themes along with Visual Builder tools like WPBakery Page Builder. The more I learn about file size and website performance, the less I want to ...
2
votes
1
answer
4k
views
How to get WordPress to accept the <style> tag in articles (or other alternatives)
WordPress (i.e. TinyMCE) automatically strips the <style> tag from articles in newer version. This means, you can only rely on inline CSS which makes the code ugly for more complex styling ...
2
votes
2
answers
257
views
Modify the Additional CSS section (adding a disclaimer)
I was trying to dig into this deeper, but I couldn't find any useful ways/hooks to add a little disclaimer above the Additional CSS code editor in the Wordpress Customizer. If anyone has a starting ...
2
votes
4
answers
11k
views
Hide post meta data on a specific category
I'm using the Canvas theme, and their framework.
I built a child theme and have my custom CSS segregated in a custom.css file in that directory. I've made some changes to one specific page layout ...
1
vote
4
answers
11k
views
How to remove padding and margin between divi rows? [closed]
I have two divi rows, each row contains 3 columns, each column contains a Blurb module item.
I want to remove padding and margin top and bottom for those 2 rows, I want padding and margin 0px, how to ...
1
vote
4
answers
5k
views
How to display post title & excerpt when mouse hovers on an image?
I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post ...
1
vote
1
answer
115
views
Include user defined styles without including wp-load
I've looked through the answers on here and none quite match my situation. I have custom CSS that a user can edit and it is saved in the options. I use wp_enqueue_style to include a PHP file with a ...
1
vote
2
answers
8k
views
adding a custom css class to post
essentially I need to be able to add a class to a post when it show in the list (say index.php) so when in the back end you can say oneCol, twoCol, threeCol and it will then output this within the ...
1
vote
1
answer
2k
views
remove everything from wp_nav_menu
My theme has three 3 menus: two that are dropdown menus and one that is different. I want to remove the div, class, etc. from the menu that is different.
For Example:
I have three menus
topnav ( ...
1
vote
1
answer
2k
views
Custom post type and body_class: Remove "blog" class
I am using body_class(); to style different sections of a wordpress site by their body class. Page styles descend from .page-template, blog styles descend from .single-post and/or .blog etc.
I have ...
1
vote
1
answer
8k
views
Cannot figure out how to center div in Wordpress theme [closed]
good people,
I'm a Wordpress / webdev newbie trying to help out a local small business. The owner wants the text on the homepage centered and I cannot for the life of me figure out how to do this. ...
1
vote
1
answer
198
views
'Customize' button in admin bar for CSS
On the WordPress.org site I'm an admin for, we have a Customize button in the Admin bar (see very left):
This allows us to easily edit CSS on the front end without editing any of our files. I ...
1
vote
2
answers
2k
views
Displaying theme options in css
I am literally pulling my hair out trying to figure this out. I have been at it for almost 12 hours now.
Being new to PHP and theme development I am having a hard time understanding how to get ...
1
vote
1
answer
2k
views
Customizing default Mediaelement player
Good morning/afternoon everyone.
Been playing around with the default wordpress mediaelement player and definitely loving it.
I managed to customize the layout a little by overriding some css values ...
1
vote
2
answers
6k
views
Custom css per category and per single post belong in each category
the condition is:
there's a wordpress site
that has 8 categories, and each category has sub-category, and each subcategory has several posts (and still will be updating/counting) :
Category A - 8 ...
1
vote
2
answers
13k
views
how can I change the background color of all posts on my server?
The default for the theme I'm using is to have a white background for any post (the part with the text, not the background that forms the border around it) on my wordpress installation. Is there a way ...
1
vote
1
answer
301
views
CSS to remove “comments count” icon from main page [closed]
as the title suggests, can you help me on how to remove icons on the homepage that show the comment count of each article?
I do not know CSS, and I do not know exactly what to change. I am using the ...
1
vote
1
answer
609
views
how to add custom css and js on wordpress post editor directly without using .php file
I am trying to add some css and js code to my home page editor at the wp-admin.
I am using simply
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.x-feature-box')....
1
vote
1
answer
346
views
TwentyFifteen: How can it show a different color on every post page?
I have made a child theme of TwentyFifteen.
Am trying to set on styles.css of the child theme a specific color on every page or post.
I tried somethin like that
.post-id-no.id .hentry,.site-footer {...
1
vote
1
answer
2k
views
How to Display Frontend CSS for Administrator only
I've been asked to restyle the css of a WordPress website frontend.
The website can't be in maintenance mode while working on it as it must stay up and running all the time.
I assume that if I can add ...
1
vote
2
answers
384
views
Selectbox in admin panel function linking to CSS
I want to link the selectbox to my CSS.
Like if I click an item on the list, the background of my header will change - the header's color is in the CSS.
The selectbox isn't in the html but it's in ...
1
vote
1
answer
129
views
How to make classes for posts?
Thanks in advance.
I'd like to have posts with different colored borders and headers. It would be nice to choose a category of the post (red, blue, black, etc.) and have it change the class for that ...
1
vote
2
answers
320
views
Can I install/embed Wordpress on a 'single page'?
I'm building a website from scratch (PHP, jQuery) and want to have full control over the design, implementation, etc.
I want to install Wordpress so that when you go to a certain section of the site, ...
1
vote
1
answer
33
views
Adding code to child's theme css and php cannot override certain elements
I've installed the twenty eleven theme and created a child theme based on it. I copied the entire style.css from the parent theme with all the changes I want to the child theme's css and most of the ...
1
vote
0
answers
62
views
Is it possible to add a ribbon in the background of h1 on every page?
I want to customize my h1 and to put a ribbon in the background like in the example bellow.
Example: https://css-tricks.com/snippets/css/ribbon/
I'm not quite sure if/how it's possible to make all ...
1
vote
1
answer
430
views
Resizing of a header/div in a website through css in wordpress [closed]
How can I resize the mentioned header/div of my WordPress website? I have already tried it through checking the div name by going into Inspect Element but it is not working. One thing more the size ...
1
vote
0
answers
67
views
Customize position of social icons in upme plugin [closed]
I want to change the position of Social Icons so that they appear in the bottom of profile image.
I don't know how to change the position of div in the UPME plugin to make this change. I can do it ...
1
vote
1
answer
193
views
Making a custom Pagination for multi page blog post
I am building a multi page guide in wordpress and would like to set it up so readers can click on a chapter and be taking that page. I know about the code but i would like my Pagination to appear at ...
1
vote
1
answer
38
views
CSS Minification
Can someone help me understand the process that goes into employing CSS and JavaScript minification?
I am going to be having some development work done on my site to speed it up and I need to know ...
1
vote
0
answers
294
views
Child Theme with multiple css files
I know this is a frequently asked question but I don't resolve it.
I have make a child theme of a theme with multiple css file and I'm trying to copy them but I probably don't enqueues css files ...
1
vote
4
answers
8k
views
Different logo on homepage
I have uploaded a file as my main logo within the theme settings but would like a different logo on the main page. The theme I am using has a custom css option within the theme settings, can I use ...
0
votes
2
answers
711
views
CSS Customizations for certain page
I've been using Wordpress for a while, and came to a point where I need to make css customizations, but only for a certain page. I know that one way to do this is to use conditional tags:
if ( ...
0
votes
2
answers
6k
views
How do I add a custom css to all posts without affecting homepage css? [closed]
As the title says, How can I add a custom CSS to all posts without affecting homepage CSS on WordPress?
And I know that some plugins like "WP Add Custom CSS" would work for this and I am actually ...