|
#1
Aug 26, 2014, 10:10 AM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
I need to modify the responsive "Desktop View" to make the Post/Page Container and Header containing the title, tag and menu wider but leaving the Widget Area One it's stock dimensions.
I want to keep the title font the same size without the text wrapping. I want to keep the dual color used wherever the Yanone Kaffeesatz typeface shows up.
I also want to switch the font used for the tagline to another Google font.
I found the title and tagline before but I can't remember which CSS they are in.
Can anybody help a sister out here?
Thank you.
|
#2
Aug 26, 2014, 11:43 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
look in MTO->CSS Files->various.css
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Aug 26, 2014, 12:05 PM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
Quote:
Originally Posted by juggledad
look in MTO->CSS Files->various.css
|
Thank you, as soon as I saw the name I could see a picture of it in my head.
What about changing the width of the Desktop Post/Page Container without messing up the Responsive features? I want to leave the Widget Area One the same but make the Post/Page Container at least a couple of hundred pixels wider.
|
#4
Aug 26, 2014, 07:21 PM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
Is this what I uncomment and use to increase the size of the container for Post/Page text?
What are the approximate values I should start with if it is?
HTML Code:
#container {
display: table;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
-o-box-sizing: content-box;
margin: 0 auto;
box-shadow: 0 0 30px -20px #999;
border: solid 1px #ddd;
}
|
#5
Aug 26, 2014, 07:53 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
you have to start thinking in columns. There are 12 columns you can use. Your header area can have a different breakup of the columns than the middle area or the footer but they all have to have 12 columns.
In the default settings, the header is sub-divided into two sections (see MTO->Sub template->header.php) the banner and the breadcrumbs.
- the banner area is the full width of the page and split into two parts - the logo area (5 columns) and the menu (7 columns) 5+7=12
- The breadcrumb is set to a width of 960px (by the 'lw' class) which is why the background spans the page but the breadcrumb is width is not full page
The middle is a row where the 'content' area is 8 columns and the widget area is 4 columns (see MTO->Main template->index.php)
The CSS Grid columns have predefined widths so you don't want to mess with then. You should read the section MTO->CSS Editing so you can get a feel for what you can do in a responsive design.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#6
Aug 27, 2014, 01:01 AM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
Ok I understand. Thanks for the pointers and the homework. As for the title, instead of trying to change the stock width I've modified the title itself.
Now I'm trying to figure out how to include the bitmap logo along side the title. The logo is currently displayed at 150px square. It looks ok as small as 100 but below that looks kind of crappy. How can I insert the logo so that it vertically spans from the top of the breadcrumbs to the bottom of the black WordPress menu bar.
|
#8
Aug 27, 2014, 06:12 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
If you want the logo in the same row you need to put it in the header.php in the same row and decide how many of the 12 available columns it will use and then reduce the number of columns from of the other two items in that row.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Last edited by juggledad; Aug 27, 2014 at 07:41 AM.
|
#9
Aug 27, 2014, 07:21 AM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
I understand what you are saying in principle but I don't know anything about programming in php. I'm learning as I go along right now. I have some html and css kung fu and not enough of that to brag about. Let's see, I'm cramped for space with the sitetitle already so the menu will have to give up two columns right? Each column is 80 pixels wide so with a 100px logo I would need to steal two columns? Is there a way to do incremental or part of a column in this case? What would the declaration appear like for inserting an 100px square bitmap immediately preceding the sitetitle? I'm assuming that it would somehow be inserted in between logo-area and sitetitle? Am I right in removing two from menu-wrapper col7 and making it col5?
PHP Code:
<div id="logo-area" class="col5">
<Here>
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>
<?php wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'menu-wrapper col5',
'container_id' => 'menu1-wrapper',
'menu_id' => 'menu1',
'menu_class' => 'cf menu',
'theme_location' => 'menu1',
'fallback_cb' => 'bfa_page_menu'
) ); ?>
</div>
</div>
|
#10
Aug 27, 2014, 07:58 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
Let's see, I'm cramped for space with the sitetitle already so the menu will have to give up two columns right? Each column is 80 pixels wide so with a 100px logo I would need to steal two columns?
|
stop thinkng about PX's you need to think about things fitting in columns and you only have 12 columns to work with
Quote:
Is there a way to do incremental or part of a column in this case?
|
you might be able to adjust the positioning of the two items, but it will be messed up when you resize the page or look at in on a mobile device.
Quote:
What would the declaration appear like for inserting an 100px square bitmap immediately preceding the sitetitle?
|
you should not use a bitmap - use a png or jpg
Quote:
I'm assuming that it would somehow be inserted in between logo-area and sitetitle?
|
it should be in a seperate <div> for example
HTML Code:
<div id="banner-bg" class="cf">
<div id="banner" class="row">
<div id="my-logo-image" class="col2">
<img src="my.png />
</div>
<div id="logo-area" class="col5">
<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
<a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>
</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
<p id="tagline"><?php bloginfo( 'description' ); ?></p>
</div>
<?php wp_nav_menu( array(
'container' => 'nav',
'container_class' => 'menu-wrapper col5',
'container_id' => 'menu1-wrapper',
'menu_id' => 'menu1',
'menu_class' => 'cf menu',
'theme_location' => 'menu1',
'fallback_cb' => 'bfa_page_menu'
) ); ?>
</div>
</div>
Quote:
Am I right in removing two from menu-wrapper col7 and making it col5?
|
that will work since the total columns will equal 12
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Aug 27, 2014, 04:14 PM
|
|
|
|
43 posts · Aug 2014
Cincinnati, OH (USA)
|
|
Ok, I got it. It's working. I see that the dimensions of the bitmap image are automatically adjusted to fit whatever number of columns you assign it. There was a quote missing at the end of the path for the image.
PHP Code:
<div id="banner-bg" class="cf"> <div id="banner" class="row"> <div id="ecopsi-logo-image" class="col1"> <img src="/images/logo.EcoPsi.100px-trans.png" /> </div> <div id="logo-area" class="col6">
By the way, png and jpg files are bitmap images also referred to as raster images.
Now how do I adjust the vertical position of the sitetitle? I assumed that it was css and in "various.css" but nothing I did affected the position of the sitetitle. I would like to adjust the vertical position of the sitetitle so that it is lower/closer to the tagline.
Last edited by Auriel Kitsu; Aug 27, 2014 at 08:17 PM.
|
|