Tim Nicholson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Link] Fail to create a Child Theme for Link ThemeHi, JMR. The issue is that the Link theme itself is a child theme of Flat Bootstrap. You can’t have a child of a child theme, but you can still accomplish what you are looking to do.
- Copy the entire link theme directory over to new directory. Its fine to name the directory link-child like you want.
- In the link-child style.css, change the “Theme Name” to “Link Child”. Make sure the “Template” still says “flat-bootstrap” (NOT “link”).
- Add your functions to the link-child functions.php file.
- Add your CSS to the link-child style.css.
When the original Link theme is updated (like to v1.2), it will update the one in the /link folder and not override your /link-child.
Forum: Themes and Templates
In reply to: [Link] After the update to 1.1. the site doesn't work properlyYes, that code is in Flat Bootstrap v1.4.x.
Forum: Themes and Templates
In reply to: [Link] After the update to 1.1. the site doesn't work properlyThe parent theme is now fixed and I’ve uploaded it to WordPress.org. It usually takes a little while for someone there to review it and push it live, though.
Also, if you don’t want to go back to Link v1.0, here is the fix I made to the Flat Bootstrap content-header.php file.
Find the code that looks like this:
// Otherwise if we have a featured image, try to get text from the image } elseif ( $image_type == 'featured' ) { $attachment_post = get_post( get_post_thumbnail_id() ); if ( $attachment_post AND ( $attachment_post->post_excerpt OR $attachment_post->post_content ) ) { $title = $attachment_post->post_title; $subtitle = $attachment_post->post_excerpt; $description = $attachment_post->post_content; }And replace it with this:
// Otherwise if we have a featured image, try to get text from the image } elseif ( $image_type == 'featured' ) { $attachment_post = get_post( get_post_thumbnail_id() ); if ( $attachment_post AND ( $attachment_post->post_excerpt OR $attachment_post->post_content ) ) { $title = $attachment_post->post_title; $subtitle = $attachment_post->post_excerpt; $description = $attachment_post->post_content; } else { $title = get_the_title(); $subtitle = get_post_meta( get_the_ID(), '_subtitle', $single = true ); }Forum: Themes and Templates
In reply to: [Link] After the update to 1.1. the site doesn't work properlyHi, jagna. I’m sorry about that. I completely rewrote the content-header.php file in the parent theme and removed the one from the Link theme. My intent was to have it work the same way with respect to featured images, meaning it pulls the text from the image first and then from the page title. However, you are correct that it doesn’t do this properly.
You can downgrade to v1.0 of the Link theme here Link Theme “Developer” tab
I’ll fix this in the parent theme (Flat Bootstrap) and upload a new version.
Thanks for pointing this out!
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Impossible to empty 'Call to Action' widgetI just tested it again and it seems to be working fine. Just add a text widget to the “Page Bottom” widget area. Don’t fill out a title or any text. i.e. Use a completely blank text widget.
Forum: Themes and Templates
In reply to: [Link] Importing Demo Home and Sample Pages?Hi, port. Thanks for the kind words. I’ve included an import file (.xml) for the sample home page for Link. Its in the theme directory under /samples and is called samples.xml. Its a standard WordPress import format.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Help removing image from blog pageHi, Diana. It looks like you figured this out. I’m not sure specifically how you did it, but for other that may be reading this…
If you choose a custom header that gets applied to the whole site, including the blog page. If instead you assign a large, full-width image just to the static page you define as the front page, then you’ll have that image there and the blog (or any other pages) won’t have that image.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Make Header Image responsiveHi, paulunstech. Automattic, the makers of WordPress, are in the process of rolling out a custom logo option. Its available on WordPress.com right now and I believe it will be added to the Jetpack plugin for self-hosted. I’m doing all I can to have the theme revolve around standards put forth by Automattic.
As an example, they just rolled out a Portfolio post type in Jetpack and I’ve built basic support for that into v1.4 which is currently under review. I’ve also updated the FAQ in v1.4 to show how to do a custom logo with just css.
.site-title a { background: url('http://yourdomain.com/images/logo.png') left top no-repeat; display: block; text-indent: -9999px; width: 100px; height: 100px; }Forum: Themes and Templates
In reply to: [Spot] Custom logoAs a follow-up, if you want to do it strictly in header.php with a hard-coded logo URL, you can refer to this post: Logo-in-header
Forum: Themes and Templates
In reply to: [Pratt] Logo in headerHi, rzul. You could have still replied to the other post and I could have replied there. Marking it “resolved” just means I had provided an answer. You’re almost there as far as what you need to do.
There is this code in header.php that outputs the site title (“name”) wrapped in a link:
// Site title (Bootstrap "brand") in navbar. Shown by default. Customizer will // let you hide it if you want. $navbar .= '<a class="navbar-brand" href="' .esc_url( home_url( '/' ) ) .'" rel="home">' .get_bloginfo( 'name' ) .'</a>';You want this code instead for the logo and link:
<a class="navbar-brand" rel="home" href="http://candtconstruction.com"> <img width="155" height="50" alt="CandTConstruction" src="http://candtconstruction.com/wp-content/themes/pratt/images/logo-50.gif"></a>So the new code in header.php should look something like this. Note that the code for the link and rel=”home” is already handled. All you are doing is replacing out the name with an image:
// Site title (Bootstrap "brand") in navbar. Shown by default. Customizer will // let you hide it if you want. $navbar .= '<a class="navbar-brand" href="' .esc_url( home_url( '/' ) ) .'" rel="home">' .'<img width="155" height="50" alt="CandTConstruction" src="http://candtconstruction.com/wp-content/themes/pratt/images/logo-50.gif">' .'</a>';Forum: Themes and Templates
In reply to: [Link] Multiple pages just above the pagebottomHi, sunk8. You can actually import the sample Spot theme landing page. Its in a folder called /samples under the Spot theme itself. Basically the idea is that you use standard Bootstrap markup coupled with some theme-specific color palettes and such to do it. That is, you build all the content on the single page instead of including pieces of content from multiple pages.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Navbar only displays 3 items besides Home PageHi, ireneherz. harttmutnz is correct. Create a custom menu and then assign it to be the top navigation menu. What you are seeing is just a “sample” menu that shows the first 4 pages.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Navigation Bar IssueHi, hartmutnz. The theme’s built-in navigation bar uses core Bootstrap navigation. Bootstrap has both those limitations you state above… Top menu item triggers the drop-down as opposed to being a link in and of itself and the menu system only goes two levels deep.
I’m not sure I agree with them, but the Bootstrap folks believe strongly that in a “mobile first” World, nav menus should be kept simpler and not rely on hover states.
If you want to roll your own menus, you can change the header.php file to not call the Bootstrap-specific “walker” and the theme will spit out standard WordPress menu HTML. You’d then need to add the CSS for those menus to theme, perhaps borrowing it from one of the Twenty-something themes.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Post image slider in content-headerHi, NM6. I do think that using a plugin would be the easiest for that. If you find one that is specifically designed to do what you want, then you can insert the shortcode for it and set the page template to one of the ones that doesn’t show theme’s built-in featured image (“content header”).
The Bootstrap shortcode plugin that is recommended with the theme will let you do this, but you’ll need to paste in all the image URL’s into the shortcodes. That’s why I say it would be easier if you find a plugin that automatically pulls the images like you want.
Forum: Themes and Templates
In reply to: [Link] Put a video instead of a picture in the homepageThat’s an interesting idea. I’m trying to keep my themes as pure to the out-of-the-box WordPress experience as possible. Currently that means using featured image functionality. It would be great if WordPress let you set a video as featured, like with images. Then it would be easy to display them in the page and article templates.
What you are wanting to do is probably fairly difficult at this point. I can point you to a few things that might help you think through how best to tackle it. The theme is based on Bootstrap an it does support classes that indicate whether to display on desktop or mobile. See Bootstrap responsive utilities. You would have to embed both the video and the image and use those CSS classes to determine which to display.
WordPress also has a function wp_is_mobile() that can be used server-side (php). You’d have to edit the page.php and/or single.php template. See wp_is_mobile(). That function returns true for tablets though, not just for mobile phones.
Then there are additional complexities depending on whether you want text to overlay the video (like the theme does for images), whether you want the video to auto-play or not, etc.