Tim Nicholson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Spot] Custom logoHi, makapa. Thanks fro the kind words. WordPress themselves have now created a custom logo plugin, which they have deployed on wordpress.com and have also released the code to be used on wordpress.org sites. I would very much like to support that plugin, but need to research how to do that.
In the meantime, if you plan on doing the custom logo via CSS I would use the Jetpack Plugin “Custom CSS” feature. You key in your CSS there, it gets saved in the database, and Jetpack applies it to your site. I think as an inline styles, but it definitely works and causes no issues with upgrading the theme.
Forum: Themes and Templates
In reply to: [Link] Change site credits text and colorHi. To change the site credits link color and hover color, you can add CSS like this:
.site-credits a { color: #123456; } .site-credits a:hover { color: #123456; }To change the actual text, there is basically two ways. You can directly edit the file footer.php in the parent theme (Flat Bootstrap). You’d change the line that starts with
$site_credits =. But I built in a better way. In the functions.php file within the Link theme, you can create a function to override the text from the parent theme. Here is an example of that:/* * OVERRIDE THE SITE CREDITS TO GET RID OF THE "THEME BY XTREMELYSOCIAL" AND JUST LEAVE * COPYRIGHT YOUR SITE NAME * * You can hard-code whatever you want in here, but its better to have this function pull * the current year and site name and URL as shown below. */ add_filter('xsbf_credits', 'xsbf_child_credits'); function xsbf_child_credits ( $site_credits ) { $theme = wp_get_theme(); $site_credits = sprintf( __( '© %1$s %2$s', 'xtremelysocial' ), date ( 'Y' ), '<a href="' . esc_url( home_url( '/' ) ) . '" rel="home">' . get_bloginfo( 'name' ) . '</a>' ); return $site_credits; }Forum: Themes and Templates
In reply to: [Link] Multiple pages just above the pagebottomHi, sunk8. Thanks for the kind words. I’m afraid I’m not understanding all what you are trying to do. It sounds like you are just trying to set up various pages within your site and some should have a sidebar and some shouldn’t. That’s fine, the theme handles that already. For pages where you don’t want a sidebar, just choose the page template “Page – No Sidebar”. You don’t need any code at all to do that.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] debug error messageThe theme doesn’t actually make any calls to wp_register_script. Could it be a plugin that you are using causing that error? Take a look at functions.php and you’ll see I’m using wp_enqueue_script. Also note that whole section is specifically triggered by wp_enqueue_scripts, meaning its called at the right time that error message suggests.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Editor background color???I’d just set body { background-color: white; } in the CSS. That should override it everywhere.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Virus detected in inc folder?That file is what let’s me recommend various plugins that work well with the theme. It was written by Thomas Griffen and I have contributed a fix to it before. https://github.com/thomasgriffin/TGM-Plugin-Activation. It certainly shouldn’t have a virus on it. I develop on a Mac and Linux machines and viruses are extremely rare as compared to Windows. Let me know if you have any more info about it.
Forum: Themes and Templates
In reply to: [Pratt] Possible to remove sidebar altogether?You can remove the sidebar from any page by selecting the page Template “Page – No Sidebar”. If you want to remove it from everywhere else, such as the blog, then you’d have to edit the index.php file to change the css class “col-md-8” to “col-md-12” and comment out the call to get_sidebar().
Nevermind, found it in another forum post. For reference purposes here it is:
add_post_type_support( 'page', 'excerpt' );Excellent find! Thanks for sharing!
Do you happen to know if excerpts can easily be enabled for regular WordPress pages as well?
Forum: Themes and Templates
In reply to: [Spot] Header image sizeHi, please see this post for a discussion about the header image being designed to be cropped.
I’m was inclined to make it responsive in the parent theme, Flat Bootstrap, but was planning on leaving it to crop in the child themes (Spot, Link, Pratt). I’ve made note of your request, though. I’m really starting to think some tweaks are needed to how custom images are handled.
I’ll mark this thread as closed, but will turn notifications on as I’m happy to continue the discussion.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Make Header Image responsiveThanks for the kinds words! I had made the assumptions that either the header image would be large (1600px x 200px) and should get cropped as necessary at narrower browser widths… or the image would be a small pattern that gets repeated to fill the full browser width (up to 1600px, though, as that is the max width of the entire theme). So that’s how its coded.
In looking into this further, I like the way the WordPress TwentyThirteen theme handles custom header images. They are responsive and it looks like it has a breakpoint at 768px that also adjusts the text size and height.
I’ll look into changing how this theme works. Originally I was worried about changing how headers work since there are over 20K downloads already, but I suspect that lots of folks would want it to work this way.
I wish I had a quick fix for you. You might be able to pull this off with some CSS, but in supporting the WordPress Customize capabilities, some of the header styling is added as inline CSS by the header.php and /inc/customer-header.php files.
I’ll marked this as closed, but am happy to keep the discussion going on it. Let me know if you have more thoughts on this and/or come up with some CSS to change the behavior.
Forum: Themes and Templates
In reply to: [Link] Changing ColorsIt looks like you may have figured out some of this already, but here is some guidance. For the copyright section, that css class is called “site-credits”. If you want to change the colors of the footer nav menu to left of that as well, you can target the whole css class of “after-footer”.
So to change the link color, you can do something like:
.site-credits a, .site-credits a:active { color: whatever; } .site-credits a:hover { color: whatever; }For the email link color, that is in a css class called “contact-footer” and you’d change it the same way as above.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Call to ActionIf you add any widget to the Page Bottom widget area, even a blank text widget, the sample widgets will disappear.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Call to ActionThanks for the kind words. You can add a blank text widget to the Page Bottom widget area to remove the samples. I’m trying to think through an easier way to both highlight what the theme can do while making it easy to alter it. WordPress doesn’t provide any options for displaying sample widgets that can be edited. I have to hard-code them into the theme conditionally upon there being no user-added widgets.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Call to ActionIf you add any widget to the Page Bottom widget area, even a blank text widget, the sample widgets will disappear.