Tim Nicholson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Pratt] Header image height and navbarFor the header image height, it depends on whether you are on the home page or not. The home page puts a CSS class of “cover-image” while other pages use “section-image”. It also depends whether you are on a desktop or smartphone. That is set with the height and min-height parameters.
You can override these by adding CSS to the end of the style.css file in the theme’s directory. Or you can use Jetpack Custom CSS or another plugin that let’s you override a theme’s CSS.
Pratt uses a navbar that is fixed to the top, so I would assume if you want it moved below the header, then you’d need to turn that off. To that its probably easiest to edit header.php and remove the CSS class “navbar-fixed-top”. That will cause it to scroll with the page instead of sticking to the top. But then you have to remove the body padding via CSS or you’ll have blank space above it. Its probably easier to just use the parent theme, Flat Bootstrap. Its almost identical to Pratt but doesn’t have the sticky navbar.
Then moving the navbar below the header image is going to be tricky. Header.php controls the navbar, but then later content-header.php handles displaying the header image. So those two things are physically ordered that way in the HTML. Swapping their location is hard with CSS.
If it were me, I’d probably edit header.php to comment out displaying the navbar. Take that same code and move it into the appropriate place in content-header.php. But that is gutting the theme and you should probably create your own child theme. Copy up the included flat-bootstrap-child theme to the parent directory and then copy the parent’s header.php and content-header.php down into that child directly and edit them there. That way you can still upgrade Flat Bootstrap without causing problems.
Forum: Themes and Templates
In reply to: [Spot] Featured images from headerI’m just not familiar with how Photon works, sorry. But as for the theme, any large featured image on a page should override the otherwise site-wide “custom header image”. If not, it may be a bug that I’ve fixed in the next version (v1.6) but I thought I fixed that back in one of the v1.4.x releases.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Top NavigationYep, exactly. And it already has the fixed nav bar at the top.
Hi, it doesn’t look like you put the negative margin on the content header image. So while the navbar is transparent, the white background of the page is showing through. You could change the background color to a soft blue like your image. That might be easiest. Or you can set the negative margin. I only have Safari and Chrome on Mac, but -60px seems to work.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] Using the featured image on pagesThe height of the full-width featured images on pages is set to a minimum height on desktop and also on smartphone. The reason minimum height is used is so we can be sure that the height of the image is taller than the text that is overlaid on it. In Flat Bootstrap, the min heights are 400px for desktop and and 340px for smartphone. The image will crop to fit the space.
If you are seeing an image that is so high its filling up the whole browser window on a desktop computer, then I would assume you have a lot of text be overlaid. You could shorten the text or use CSS to reduce the font size(s).
Forum: Themes and Templates
In reply to: [Flat Bootstrap] translationHi, my understanding is that only the flat-bootstrap.pot file is needed to allow others to translate the theme. So far its been translated to Spanish, French, and in the next release also to Danish.
I did have some missing phrases in v1.5, but I believe I’ve got those included in the next release (v1.6). There are no text phrases at all in functions.php rows 29 and 44, though.
Hi, thanks for the kind words! Are you wanting to replace the down arrow (#pagetop link) with a button instead? Or remove that altogether and just put a button somewhere later in the body of your home page?
To remove the down arrow altogether, you can use this CSS:
.scroll-down.smoothscroll { display: none; }Later in your page content you can add a button like this:
<a href="whatever" class="btn btn-primary">click me</a>Forum: Themes and Templates
In reply to: [Flat Bootstrap] Top NavigationHi, Reinar. You could modify the header.php file or override CSS, but I’d actually consider just using my Pratt theme instead. It is very similar to this one but with actually quite a bit of code and CSS to fix the navbar to the top.
As to the site name and description, I’m doing it the standard WordPress way. I really don’t get why they only allow a single color choice for both, but a major goal with my themes is to have them be based specifically on how core WordPress and the included Twenty<something> themes work.
For that, I’d use the built-in Customizer to set the color to what you want the site title. Then use CSS to override the description color. The CSS class for the latter is “site-description”. So something like this should work for you:
.site-description { color: #123456; }Of course if you have a fixed header nav, like if you use the Pratt theme instead, the site description doesn’t make sense to display (it shows site title and top menu) so its a non-issue.
Thanks for the kind words! Technically, making the navbar background transparent is pretty easy, but the issue is likely that you actually want the full-width image moved up under it so it displays through the navbar. I’m actually working on a theme design right now with a fixed navbar that makes it even more complicated because it requires javascript to change the opacity depending on scroll position.
But for what you probably want, this could be a simpler solution for you:
.navbar-default { background-color: transparent; border-color: none; } .content-header-image { margin-top: -50px; }But in your particular case, your image has dark-colored rocks that conflict with the font color. So you’d probably need to change up the navbar font, link, and possibly hover colors as well.
Forum: Themes and Templates
In reply to: [Spot] Featured images from headerHmmm. So the Jetpack Photon feature was the issue all along? I love that Automattic has released Jetpack for self-hosted sites, but I have found that its pretty aggressive in taking over various WordPress hooks and applying some very specific CSS. So it can be a bit difficult to play nice with it. I absolutely want to make sure nothing I do conflicts with it, though.
I’ll have to look into this particular issue. Photon is a CDN and my whole logic for full-width featured images is based on being able to get the image width. Its possible that the image width is not properly being returned from a third-party (“cross-domain”) server.
I still don’t get any association with the theme as it relates to permalinks because I don’t do anything with them, but I’m definitely relying on image meta data in the theme to control how it works.
Forum: Themes and Templates
In reply to: [Pratt] Webmaster Missing Author, Entry-Title, & UpdatedThanks for pointing this out. I found some good information here: https://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/.
I can tell you that blog posts will only display the author if there is more than one author with posts on your site. That was done by design, but perhaps I could output it and then hide it with CSS.
I’ll definitely look into this some more and include in a future release, assuming the fixes in the article work.
Forum: Themes and Templates
In reply to: [Spot] Featured images from headerThat is really strange. I can’t imagine that there is anything in the theme that has anything to do with the permalink settings. However, your images must be at least 1171px wide (1600px recommended) for the featured image to appear in the header. The idea being that smaller featured images are just meant to be used for post thumbnails.
I’ll mark this as closed, but if you can share more details about the permalink issue, I’ll be happy to help.
Forum: Themes and Templates
In reply to: [Spot] Remove testimonialsHi ericbullet, by setting testimonials to false, it will remove that feature. Just remove the two slashes (//), that tells PHP to ignore the line (i.e. its a comment). So the line should look like this:
'testimonials' => false,Forum: Themes and Templates
In reply to: [Spot] Make Button clickableI’d just do it like this:
<p><a href="http://whatever.com/" class="btn btn-hollow btn-lg">Button Name</a></p>'The only reason the above code is more complex than that is to allow for foreign language translation of the theme.
Forum: Themes and Templates
In reply to: [Flat Bootstrap] PO fileExcellent, thanks for volunteering! We’ve had fine folks translate to Spanish and French already and Danish would be great. I’m not sure why “Read More” was missing, but I just regenerated the .pot file and its there now. I will include it in the next version (v1.6). I’d be happy to email it to you now. Or I can post the v1.6 development version to my github and you could grab it from there.