?
Solved

Wordpress Visual Editor: How to make it functional with custom themes

Posted on 2011-03-19
2
Medium Priority
?
321 Views
Last Modified: 2013-11-19
We had our company website redesigned several months ago, and it is currently on the wordpress.org platform. It was ‘delivered’ with a custom theme modified from the 2010 pre-existing theme. My question is regarding the web-based visual editor and the corresponding stylesheet (as far as I understand, this is what dictates how the visual editor in the WP interface displays content as it is created). Currently, our visual editor looks *nothing* like what actually appears on the site; fonts, images, sizing, etc., so much so that it is actually easier to work in the html view.  I am guessing that the discrepancy is due to the ‘visual editor stylesheet’ not being updated from the 2010 template theme to reflect the custom theme that was designed for us.  If that is the case, is there a way to easily update visual editor stylesheet so it matches the actual site’s stylesheet?  If my logic thus far has been correct, does this also mean that all changes to the main stylesheet must be duplicated in the visual editor one? That doesn’t sound feasible, so I am obviously missing something!  Any advice would be greatly appreciated.  My apologies if the question is confusing; I am happy to clarify/provide any additional details needed. Thank you in advance!
0
Comment
Question by:SaraLynnn1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
gwkg earned 2000 total points
ID: 35173846
To attach a stylesheet to the visual editor use add_editor_style()

Details: http://codex.wordpress.org/Function_Reference/add_editor_style

Example: http://digwp.com/2010/11/actual-wysiwyg/

You would put something like this in your functions.php:

add_editor_style('custom-editor-style.css');



0
 

Author Closing Comment

by:SaraLynnn1
ID: 35224256
My apologies, I apparently didn't see this when I requested attention on the question. Please let me know if for some reason you don't get the points, I appreciate the solution very much!!
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month7 days, 22 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question