Solved

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

Posted on 2011-03-19
2
301 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
2 Comments
 
LVL 31

Accepted Solution

by:
gwkg earned 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now