Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-03-19
2
Medium Priority
?
333 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 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

Independent Software Vendors: 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

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. …
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 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