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 »

Block width


  #1  
Old Apr 17, 2021, 10:51 PM
extremecarver
 
117 posts · Jul 2009
Block width

I know the block width is related to the theme. And somehow this resolves to 540 pixels for me - which is way too narrow.

How can I change the block width to 90%
(this is the width of the text inside the editor, I think it applies to both tinymce aka classic editor and the gutenberg editor).


I created a theme and was able to change the margin left hand side - but not the actual width.

add_filter( 'admin_footer', 'fulleditorwidth', 99 );
function fulleditorwidth() {
echo '<style> #content_ifr { display: block; margin-left: 3px; margin-right: 3px; width: 1900px !important; max-width:none !important;}</style>';
}
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org
  #2  
Old Apr 17, 2021, 11:19 PM
extremecarver
 
117 posts · Jul 2009
just to add - this is clearly depending on the theme - because with twenty-one I get a much wider block in the classic editor (and likely also gutenberg, but I only use classic editor)
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org
  #3  
Old Apr 20, 2021, 04:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
I created a theme and was able to change the margin left hand side - but not the actual width.
are you creating a new theme? If so, why are you asking about it on the Atahualpa theme forum?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Apr 20, 2021, 09:06 AM
extremecarver
 
117 posts · Jul 2009
sorry, meant of course child theme. and the text is in the functions.php
The block width is clearly somewhere in atahualpa, but I don't think it depends on any configurable setting - well at least not documented.
And it's the same width for me if I reset Atahualpa or with my settings. Just don't know this is because atahualpa doesn't have support for something that changed, or if it's configured to be that tiny - 630 pixels more or less... While my site is using 1920 width (depending on actual screen resolution, using the responsive atahualpa css stuff). Of course this only applies to visual view in the editor, html view is full width. i guess width right now is 640 pixels minus margins...
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org

Last edited by extremecarver; Apr 20, 2021 at 09:21 AM.
  #5  
Old Apr 20, 2021, 09:39 AM
extremecarver
 
117 posts · Jul 2009
Edit: no content_width seems to be for Gutenberg? I just set it to 1920 and it changed absolutely nothing... so where is block width...
however there is no other 640 in atahualpa according to google: 640 site:https://github.com/mdmower/atahualpa?


found it - haha should have diretctly looked into the functions.php file and search for width...

// Since 3.6: Content Width
if ( ! isset( $content_width ) )
$content_width = 640;


maybe this is helpfull?
https://github.com/studiopress/genes...ple/issues/132


An alternative would be using CKeditor - I used it in the past and it shows full width. However I think I switched back to Tinymce because of some formatting bugs related to empty lines / breaks. Cannot remember... with it not being updated for 6 years it's not the best idea I feel...
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org

Last edited by extremecarver; Apr 20, 2021 at 10:28 AM.
  #6  
Old Apr 20, 2021, 11:15 AM
extremecarver
 
117 posts · Jul 2009
oh I finally found a tutorial that worked, after trying plenty that were not working anymore or plugins that didn't work:

https://wordpress.stackexchange.com/...rdpress-editor

functions.php
// Style the tinymce editor.
function my_theme_add_editor_styles() {
add_editor_style( 'my-editor-style.css' );
}
add_action( 'init', 'my_theme_add_editor_styles' );


my-editor-styles.css
[css]#tinymce {
max-width: 1640px;
}[/css]


Note however - I do not know why, but this causes full width instead of 1640px. But I wanted full width anyhow...
Actually I think the reason is that my code is wrong - but atahualpa has no editor stylesheet at all, so the tinymce editor falls back to some default stylesheet. As I created a stylesheet, even if wrong - it resets to full width. The important thing is to have a style sheet. I know atahualpa is not really developped anymore - but maybe a basic editor stylesheet should be added? however than my child theme wouldn"t work anymore so maybe better not...


Well the best default behaviour would be - if it"s full width or takes the width from the responsive stuff .i.e.

/* #### small Desktops #### */
@media screen and (min-width: 801px){
tbody {max-width: 1080px; margin: auto;}
div#container {max-width: 1080px; margin: auto;}
table#layout {max-width: 1080px; margin: auto; font-size: 0.80em;}
}

/* #### HD Desktops #### */
@media screen and (min-width: 1260px){
tbody {max-width: 1250px; margin: auto;}
div#container {max-width: 1250px; margin: auto;}
table#layout {max-width: 1240px; margin: auto; font-size: 0.85em;}
}


from css inserts..
__________________
Don't settle for lousy expensive Maps - Get free Maps based on Openstreetmap with great autorouting for cyclists, hikers and Mountainbikers at http://openmtbmap.org

Last edited by extremecarver; Apr 20, 2021 at 11:36 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with block quote doug86 Atahualpa 3 Wordpress theme 4 Sep 25, 2010 09:21 PM
[SOLVED] Is there a way to block JUST the byline from my feeds? kindofadraag RSS, Feeds & Subscribing 5 Mar 12, 2010 12:18 PM
[SOLVED] Block in Menu Bar Wendorff Page & Category Menu Bars 6 Jan 22, 2010 12:51 PM


All times are GMT -6. The time now is 11:33 AM.


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