Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Make visual editor read atahualpa css in Add HTML/CSS Inserts


  #1  
Old Dec 12, 2015, 03:38 AM
DanDan
 
41 posts · Aug 2010
I built a site with very involved CSS, the client needs it to be editable in the visual editor but the visual editor does not see the css so it looks nothing like the page. I added the following to functions.php:

function my_theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'init', 'my_theme_add_editor_styles' );

and then copied the css in Add HTML/CSS Inserts into a file and uploaded it. It works great except any changes I make in Add HTML/CSS Inserts must be then be added to the css file I made. Where is the css file located that is generated by the css in Add HTML/CSS Inserts? If I could link to this rather than the css file I created I would not need to update my css file every time I made a change to the Add HTML/CSS Inserts.

Thanks,

Dan
  #2  
Old Dec 12, 2015, 04:13 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
Where is the css file located that is generated by the css in Add HTML/CSS Inserts?
It's not stored in a file, it's stored in the database in the wp-options table as part of the one row that stored ALL of the theme options.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 12, 2015, 01:56 PM
DanDan
 
41 posts · Aug 2010
In that case I will just need to update the css file whenever I make a change to the css.

thanks,

Dan

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
why Fields in the Atahualpa 3.3.3 does not expand? css inserts, html inserts krystyna New Versions, & Updating 3 Oct 28, 2010 12:22 PM
3.4.9 set the "HTML/CSS Inserts" back to wider editor darmanpurba@gmail.com New Versions, & Updating 3 May 16, 2010 04:26 AM
How to ad a font style to CSS Inserts? Will it show up in visual editor font pop up? treeplant Center area post/pages 5 Apr 5, 2010 07:48 AM
[SOLVED] why Fields in the Atahualpa 3.3.3 does not expand? css inserts, html inserts ppat2 New Versions, & Updating 3 Jun 2, 2009 05:41 PM
Possible to make css/html inserts box bigger? BigG Atahualpa 3 Wordpress theme 2 Apr 28, 2009 12:07 PM


All times are GMT -6. The time now is 01:30 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.