How to add css in post? [closed] - css

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I use Wordpress.
I need to add in my post CSS and I didn`t find any plugins...

Have you tried inline style="background: #00ff00;"?
Or am I not understanding your questions correctly? You should be able to do inline styles by clicking the HTML tab when you create your post.
As I was feeling generous, I did a search for 'wordpress css in post' and got this result:
http://digwp.com/2010/02/custom-css-per-post/
Hope that helps.

What do you mean? If you want to manually style a post, you edit the stylesheet for your theme, usually located in wordpress/wp-content/themes/your-theme-name/. You can adjust that to your needs.
As for adding CSS inside a post, use the CodeHighlighter plugin. You enclose your CSS inside of a set of <pre lang="cpp"></pre> tags.
Good luck!

if you want blog post to be custom(add css to it), you will hardly find any plug-in, but if you plan to do it manually it is not difficult though you have to add css styles to page.php and single.php which are in your active wp theme folder.
see any sandbox theme for clear understanding , i use blueprint framework for wordpress which is easy to customize.

Related

Where did I put this one line of css? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
So I'm a bit lost. There are so many places to tuck away custom css between the WordPress customizer and Elementor Pro, and I added some css to style a couple little recurring anchor tags in a file sharing list, but now I can't remember where I put it and can't find it. I have looked in every place I can think of.
I know now that I can put all of my additional css in the theme file (I created a child theme for that reason) but that doesn't help me now to find that one darn line of code to edit it.
I did use the page source and found the css I added but where is the source file located so I can edit it?
I am completely self taught through various resources and prerecorded classes online so I don't know what I don't know. I am pretty good with working in WordPress but I am new to editing the file itself rather than using custom code on individual pages via a plugin.
Since you have not mentioned if the styles are applied to all web pages or to a particular page, I will try to help with the general answer which will help you to solve the problem you are experiencing. There are two ways you solve this issues one is adding styles to Elemantor Pro or by adding it to wordpress directly. To add styles to using Elemantor Pro is by right clicking on the element edit button and go to advanced and in advanced you will have custom CSS, for further info read more. Similarly you can to add custom CSS in wordpress by following link here

Wordpress theme development and bootstrap [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I just started to explore the Bootstrap project which seems nice to use in web development. I read some articles, some of them where sceptical to the combination of Wordpress and Bootstrap. This was due to the fact that (as I understand it) Bootstrap has it's own pre defined classes that you are supposed to add to your html tags, while Wordpress has another set of classes for the same elements.
I understand the problem and I would like to know if there are any "best practices" regarding this. I know that there exists plugins for this task but I like to understand this myself. I think that the trickiest part is the auto generated wp-menus and those things, am I right?
Question:
I think (without further investigation) that I in some situations want to map a wordpress class (eg. wp-menu classes) to a Bootstrap class. How do I do that?
Twitter Bootstrap will help you to build responsive theme for wordpress quickly. You can check the following link to know the difference of major common twitter bootstrap's classes that means when you should use which sets of class. If you want to add or alter the class of Wordpress menu, you should customize the Walker_Nav_Menu class. This link will help you. You can follow the wordpress standard. And finally there are many wordpress theme development frameworks which have already bootstrap. i.e. roots, underscores and so on. I like these both.

Drupal to Wordpress migration - Keeping the theme same [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a Drupal site and I've have made a decision to migrate it to Wordpress. I want to keep the same design/theme in my new WP site.
I'm wondering what part of current Drupal theme can be used in the new WP theme. Can the HTML/CSS, JS be re-used? If yes, the how?
I don't have any experience with theming so I am curious to know this.
Any help would be really appreciated.
Thanks in Advance!
I see no reason why you couldn't do that the css and js should work fine with no modification at all. You will need to do a lot of work on the html first you will have to remove the php or template tags that drupal uses (Not sure how it does it's templates). Then what I suggest you do is take a look at another wordpress theme and replicate the structure and theme files. Take the html from you drupal theme and add it to the wordpress pages style it how you like, now you will need to do some research on how to get what you need out of wordpress this is often done with php tags so your theme files for wordpress will need to be .php it is best to have a header and footer php that you can include all you links to the css and javascript. Hope this helps comment bellow if you need more help.

Using (parts of) Wordpress Themes in xpages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Not sure if this is a stupid question or not,
but i want to create a better looking notes database which should remind users of our companys homepage.
Is it possible to use codes extracts of the wordpress themes css code?!
It might be easier to start with the Bootstrap4 XPages plugin on openNTF and then work to skin that.
As long as CSS stylesheets don't reference by element ID, it's possible to utilise elements. However, bear in mind that parts of the CSS stylesheets you're using may get overwritten by inline styles or stylesheets from the XPages runtime itself. In my experience, you will usually need to make some modifications to the stylesheets your using, but it's doable.

How to make the dropdown navigation work with WordPress [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've build a wordpress template here at: http://mountsrepeats.co.uk
I've added some new pages off the 'Services' page so was wondering how I am supposed to have a dropdown appear when I hover over the services link on the navigation bar?
Is this a setting within WordPress or do I need to add some custom CSS to my stylesheet?
Thanks!
You'll need to use CSS and Javascript most likely. I know it can be done with pure CSS but Javascript tends to have better cross-browser compatability. Try looking into one of these plugins:
noupe
WebDesignDev
codecanyon - pure CSS (Costs $5)
CSS play - pure CSS
I'm not 100% familiar with WordPress, but you shouldn't need to mess with any settings on their end, just apply the code and go.

Resources