Forum Replies Created
-
AuthorPosts
-
Porter
ParticipantSmall update, I downloaded a few versions of the Sample Theme, back to 2.10, and the behavior is the same, so it's definitely intended.
As I was typing this, I discovered it simply refers to the active page. Where this tripped me up, is that I made "custom" links on the navigation, simply direction to "/", which you guessed it, is the home page. Since every single link I had was to the home page, and I was only testing the home page, they were always, 100% of the time, active.
Porter
ParticipantJust wanted to pop back in and say thanks - I finally got over my hurdle and have implemented CSS Grid into my site. Nested / multiple grids was definitely the way to go, and once I realized this was not only okay, but in the spec, I made rapid progress.
Thanks again for pointing me in the right direction by supplying me with something to look at.
Porter
ParticipantI'm not 100% sure what you're asking for. Can you try to be a bit more clear, or mock up an image to describe what you're asking?
Porter
ParticipantI'll give both of those a read, thanks. Not always, but often when I post, I'm more looking for discussion / insight, though I do get this is geared more towards a support forum, especially with you doing your daily runs and answering the regular questions - appreciate it. I should probably find myself a more active discussion forum that's less "how do I" centric, and more open discussion based and advanced in nature, at least for the broader questions like this.
As for my navigation issue, I played with it more, and I was forgetting to set the flex-wrap property to no wrap, which was creating all sorts of chaos with the fixed position header. I've nearly got it exactly as I want it (just need to resize the hamburger icon, and properly position the desktop elements), but it came together.
Porter
ParticipantYou have multiple routes you can go. Rather than explain it all here, I'll simply link you to a few sources. The short answer, use media queries to target specific screen sizes, or use more flexible units (not pixels) and the calc function (don't be intimidated). For further reading, Google "responsive text".
https://www.w3schools.com/howto/howto_css_responsive_text.asp
https://bits.citrusbyte.com/css-pro-tips-responsive-font-sizes-and-when-to-use-which-units/
Porter
ParticipantI'm doing a totally custom theme, and apparently still stuck in the past!
I've been working on this site off and on for some time (person project), and only just realized that my Sample Theme foundation code was from 2.3, not 2.6 (despite checking for updates manually, comparing dates, etc - woops). I just went through and copied over all the changes that didn't clash with my custom code, updating my stylesheet and functions.php primarily.
I'm now up to date on the latest Genesis, merged 2.6 child theme, and my own code. I figured it was related to the 2.3 oversight, just wanted to make sure I didn't remove something from functions.php when updating - thanks!
November 19, 2018 at 12:17 pm in reply to: How to change the width of content box and reduce white space around? #224457Porter
Participant.full-width-content and .content classes in your style.css are setting the width and max width to 660px.
If you're looking to expand the width across the site, those values should be changed, if you want it just on that page, use a specific selector to that page, in addition to the above selectors.
I'm unfamiliar with the theme, so I'm not sure how changing these widths may impact the rest of the site, but give it a go.
Porter
ParticipantWe currently can't view your site, it just says new site coming soon, and asks us to log in.
Porter
ParticipantApparently I can't add this for some reason, I get blocked.
Porter
ParticipantI just added a rather large response, but was met with a warning I had been blocked by Studiopress for security reasons - very annoying.
In short - wouldn't that simply add the class in parallel, not wrap around? In many cases, you may want to wrap (for adding a main container with min or max widths, flex, etc), where as in parallel would be more for additive affects using a specific class, or without altering the original class, as it may be used elsewhere.
Definitely use for that, but I'm not sure it helps when wanting to wrap like I described, though certainly correct me if I'm wrong.
Porter
ParticipantDoes this look as intended? That's the code I used in the inspector, seems to work fine for me.
Porter
ParticipantAdd this to your style.css:
.entry-content a { font-weight: 700; }
Porter
ParticipantLines 172 - 193 are altering your featured image settings. I'm a bit out of it right now, but try commenting out (add // to the beginning of the line) or removing line 174.
If that doesn't work work, try commenting out 177. I'm not 100% sure what's going on here, so a bit of guess and check work is due. If I had the site running locally, I'd figure out what exactly that function does, but for now, give that a try.
Porter
ParticipantMind posting the contents of your functions.php file somewhere? (pastebin is down right now, try https://paste.ofcode.org/)
Porter
ParticipantI know I can change it in any way, just trying to confirm that my reasoning is a good reason to break the setup the sample theme uses.
As for specific page wraps, it's more that I'll want specific elements to contain the wrap (such as every other child element within site-inner). I'll either manually code them in my templates (or partials being pulled into templates), or inject them with PHP. My main hiccup was fighting with the wrap / site inner tie, and trying to break out of that for full screen width. I can break out by using width set to 100% vw, but it makes more sense to just go full width by default, and wrap when needed, as the overall feel of the site is full width.
Porter
ParticipantI figured as much, just thought I'd check in before I got to it (wasn't a priority). Thanks for the insight!
Porter
ParticipantI'll check out Business Pro to see the implementation, but I'm more or less interested in the theory and design, not how to. I can do it, I've hacked apart various themes many times, I'm just seeing a common trend, and don't get why that's the method of choice, over what I described. A max width wrapper seems to defeat the purpose of full screen with variable display sizes in mind, it's kind of contradictory, IMO.
Porter
Participant$shortcode = '[beverage_title title=$title]';
That doesn't work because the variable isn't read, it treats $title as nothing more than a string. Even with the correct code:
$title = get_the_title(); $shortcode = '[beverage_title title='.$title.']'; //This is so drunk! echo do_shortcode($shortcode);
I'm only getting the first word of the title. With my original code, I get the entire title, spaces, words following, etc. I Googled this a bit, and for some reason, the value has to be wrapped in quotes, it's odd.
Porter
ParticipantNeat, that looks like it will do the trick - thanks!
Do you know off-hand if there's any way to supply an array for the target element to filter? Rather than target just "genesis_attr_site-header", supply an array that contains that, as well as a few others. Not a big deal if I have to copy / paste a few lines, but if an array is accepted, or I can come up with something clever using a for loop, that would be neat 😀
Porter
Participant -
AuthorPosts