Scart91
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Jolene] How to decrease the header image widthI got a bit confused for a while as the code wasnt working, then I realised there was a missing “.” for “.header-is-on #top-navigation,”
Corrected it and the nav bar is now aligned finally 😀
Next I want to move the top logo so it aligns to the left of the contents etc. But I’ll work that out myself, I’ve asked enough questions already!
Thank you so very much for all the help, couldn’t have done it without you!
Forum: Themes and Templates
In reply to: [Jolene] How to decrease the header image widthAh okay thanks so much for all the help so far, I’ve opted to go for the Jetpack plug in. It’s much less hassle than adding removing files etc.
I’ve added the CSS code in and things have been resized to how I wanted,
just one small issue now, The nav bar isn’t centred, is there some CSS code I put in with the rest to fix it? http://www.gandmrecruitment.com/I’ll definitely be done asking questions after this one 🙂
Forum: Themes and Templates
In reply to: [Jolene] How to decrease the header image widthI’ve finally figured out how to access the wp-content files of the site to make the child theme.
I’ve followed the instructions and created the folder in wp-content where the original theme directory is too.
My style.css doc is as follows:
/*
Theme Name: Jolene Child
Theme URI: http://gandmrecruitment.com/wp-content/themes/jolene
Description: Jolene Child Theme
Author: John Does
Author URI: http://gandmrecruitment.com/wp-content/themes/
Template: jolene
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: jolene-child
*/#top-navigation,
.img-container {
margin-right: auto;
margin-left: auto;
}.img-container {
max-width: 890px;
}#top-navigation {
max-width: 810px;
}Also following the instructions I made a functions.php file which is as follows:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array(‘parent-style’)
);
}After uploading the files I went to preview the child theme and it just looks pretty messed up, here’s a zoomed out screen shot http://imgur.com/mkNQQzT
Have I made a mistake in the .css or .php files?
Forum: Themes and Templates
In reply to: [Jolene] How to decrease the header image widthAlso sorry cats_456, but I’m quite new at this. Could you possibly list all the steps to create a child theme etc?
Forum: Themes and Templates
In reply to: [Jolene] How to decrease the header image widthThanks for the help! I would also like to decrease the menu bar too if possible.