Solved

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

Posted on 2011-03-19
2
310 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

740 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