Forum Replies Created
-
AuthorPosts
-
brockMember
Hey,
You can change the color of the header by finding this selector in your style.css file:
.site-header { background-color: yourcolor; }
As for adding a site-wide banner, you could add this in your functions.php:
//* Hooks a sitewide banner before the header add_action( 'genesis_after_header', 'bc_site_wide_banner'); function bc_site_wide_banner() { ?> <div class="site-wide-banner"><img src="YOUR IMAGE HERE" alt="this describes the picture"></div> <?php } ?>
Note: Watch out for those closing php tags. Try adding the snippet to the end of your functions.php file so you don't get any errors.
And some basic styling for the site wide banner to your style.css file:
/* Site Wide Banner */ .site-wide-banner > img { height: 300px; width: 100%; }
You can adjust the values according to how you want your image to display. This will create a banner that goes the full width of the page.
brockMemberI will add a few things that I hope might help, Steve. One thing to realize is that even if JavaScript/jQuery is setting the style properties of the element, it will show up as an inline-style in the console. In chrome, it looks like
element.style { property: value; }
and shows up first on the list. You can also use that same area to add your own inline-styles to the HTML element - with FireBug or chrome's developer tools. So, you can try setting your own height value even if there isn't one that has been set by default in your theme. Victor said height isn't always set. Rather it will be determined by the content within it (see CSS box model). That is, unless it is given an specific height value.I think that if you want to really manipulate web pages you will want to learn HTML, CSS, and JavaScript (jQuery is a JS library). I don't think you need to buy that plugin to learn those though. You can use notepad++ or whatever free editor is on your computer to edit your CSS and JS files. However, that plugin which I know nothing about, more likely will help you achieve what you want without having to do a lot of homework about CSS.
You can learn more about the CSS height property here.
brockMemberThere should be an option for that in the WP customizer. Have a look at the theme setup guide that came with the theme.
brockMemberHave you tried this?
Copy and paste into funtions.php:
//* Removes the date from the entry meta //* Customize the entry meta in the entry header (requires HTML5 theme support) add_filter( 'genesis_post_info', 'sp_post_info_filter' ); function sp_post_info_filter($post_info) { $post_info = 'by [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }
brockMemberThere is a tutorial for it on the StudioPress site, under questions.
brockMemberHaha! Genesis has a wrapper class, .wrap. This add_theme_support function is telling Genesis to only add the .wrap class to the specified areas. It excludes the primary navigation, so that its inner elements aren't nested inside of that wrapper class.
If you look in your style.css file, you can find the .wrap and see what width it has. Everything that gets that class is being hemmed in by whatever that width is set to.
brockMemberOops, we posted at the same time. Yeah, you added an extra curly brace and that broke it. Glad you're back in!
brockMemberPut your mind at ease. These types of errors occur regularly when editing a function.php file and aren't cause for alarm.
You should have FTP access. You can get to your files via FTP with FileZilla or a similar free program. You just need to get your FTP credentials. This is a preferable way of editing your files in the future. You must've been making your edits right there in the admin area - you now see why that isn't optimal.
Once you get the functions file opened again, the curly-brace will be easy to spot and fix as you have the line number and know what to look for. Sometimes php errors will be one line less than specified in the error message.
brockMemberLook on line 125. You have a simple syntax error which is an extra or misplaced closing curly-brace. This might be due to where you pasted the code above (which has no closing curly-brace in it). Also, I should've mentioned to make sure your theme doesn't already have a similar line (setting the structural wraps) anywhere else in functions.php. If it does, you can just make the change on the one already there without repeating it twice.
brockMemberFor making the menu full width, add this to your functions.php file
// Removes the structural wrap from primary navigation add_theme_support( 'genesis-structural-wraps', array( 'header', 'menu-secondary', 'footer-widgets', 'footer' ) );
I'm not too sure about your mobile menu and I'm not familiar with uber menus.
brockMemberYour change is being overriden by the
.entry-title
class. Change the font size on that.brockMemberDid you try activating one of the WordPress default themes instead?
brockMemberHey there,
There is no such thing as a functions folder. What you are thinking of is the functions.php file. No need to create any new files.
So you already have a logo picked out that you want in place of the site title? Maybe this article is what you need.
brockMemberWhat all have you tried, i.e., downloading a fresh copy of the theme and re-installing it, re-installing WordPress itself, activating another theme, etc?
brockMemberThis looks like it might be the code you need to paste in your functions.php file. You might need to modify it slightly.
brockMemberWhy are you trying to do it? You should not change the HTML tag strictly for styling purposes. I believe it would be more semantic HTML if you leave them as they are. Instead, if you want larger post titles, change the font-size of the .entry-title class.
brockMemberI don't know what theme you are using but they are CSS transitions. You can read more about them and see examples here. I think they are creating a gliding effect on form elements, links, and images within a gallery somewhere. After you see some examples on that link, I'm sure you can spot them. Their purpose is aesthetic. I hope this helps a little.
May 6, 2016 at 9:56 pm in reply to: Add a header/title in Authorpress Frontpage2 widget area #185140brockMemberAdd this to the functions.php file:
// Add "Featured Books" title to the homepage function add_featured_books_title () { if ( !is_front_page() ) { return; } else { echo "<h1 id='featBooks'>Featured Books</h1>"; } } add_action( 'genesis_loop', 'add_featured_books_title' );
And add this to the style.css file:
/* Custom Styles */ #featBooks { text-align: center; padding-top: 40px; }
May 6, 2016 at 9:32 pm in reply to: Add a header/title in Authorpress Frontpage2 widget area #185135brockMemberDo you still need help with this?
-
AuthorPosts