Forum Replies Created
-
AuthorPosts
-
David ChuParticipant
Hi!
I got it to work in a quick test! Your code above got a little butchered, but I think I see what happened... I think you have a different kind of single quote at the beginning of the long image path. Check that first. Could be a Mac vs. PC type of thing. I think you may have also had a semi-colon at the end of the image path. Anyhow, here's what I used:.page-template-landing-php #content .page { padding: 10px 10px 0 10px; background: url('http://everydayhealthylifestyles.com/wp-content/uploads/2013/03/veggieslarge.png') top left no-repeat; }
Best, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantNicole,
I'm afraid that there's not nearly enough info for someone to give an answer. Someone would have to know lots of details about your site, about the Thesis and Genesis themes you're working with, and what that bit of code is supposed to do.
I will say this... if that code is for a specific Thesis purpose, it may not work at all in Genesis, or it may at least need to be adapted for Genesis. (that question may even be out of scope for Genesis support) I actually have worked on Thesis 1.8, and liked it pretty well. I haven't worked on Thesis 2.0, which has been extremely controversial.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantGlad that was helpful!
By the way, there is one time that I definitely add some extra files via includes. That's when someone has me working on one of the non-custom Genesis child themes, like the ones you see for sale here. In that case, I will have at least a custom functions file separate from the main one, and also a custom CSS file. (and possibly others if there's a lot of custom programming)
This is a safety and convenience measure. Let's say someone hires me to modify Minimal, Metro, or one of the other themes here. Then a theme update (or bugfix) comes out from Studiopress. The person sees that, and updates without backing up. Doh!! All of a sudden, oh oh, their site looks funny, or has lost some stuff!
Then I (or they) can restore my changes to their site with two 1-line code changes! Whereas if I had stuck all my changes in their stock functions.php and style.css, it would be a pretty big deal to thread these changes back in. Stuff that innocent site owners don't know about. 🙂 Yes, they're warned to back up, but they just ignore that, or get nervous thinking about it and avoid it for that reason.
I think I might adapt my bloviations here for a blog post. Thanks for the idea!
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantNot exactly. You can do themes any way you'd like. I'm just giving examples of how I might do something in the Genesis way. What you're describing is more like the generic WordPress theme method: make a template for each page type, and include PHP into it here and there. Very much traditional PHP. And there's no way you'd know otherwise, coming in brand new to Genesis, so that's why I'm giving some examples like that. At first it's confusing, but once you get used to those hooks, the massive power of Genesis emerges, and anything becomes possible!
I was once asked to make modifications to a custom Genesis theme. The site was live, and the theme worked fine, but it was very clear that the coder knew nothing about Genesis, because they didn't use any Genesis hooks or functions, instead they had dozens of template files, and zillions of includes - very much like a generic WordPress theme. It all worked, but it was extremely hard to find anything, and it utilized zero of the power of Genesis. I ended up spending as much time hunting for stuff as I did coding. 🙂
My child themes usually have just 2 files: functions.php and style.css. That's it! Even if I have a fully tricked-out homepage, I can usually get everything I want using hooks, filters, sidebars, and CSS. The functions file may have a few includes, and all the rest of the PHP code consists of functions, which are called conditionally and via hooks. You could say that I'm an extreme minimalist - others might always make a home.php, and so on, and there's nothing wrong with that.
Another way to think of it is that Genesis framework has so many layouts built-in, that you just call them at will, and alter them on-the-fly if you want.
That's probably more bloviation than you asked for, but I'm in a chatty mood, and I hope it helps a little!
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantHi,
Your site's HTML doesn't validate. You have the DOCTYPE coming after a couple DIV's. There are many other errors, too. Start with checking that. Fixing that will go a long way towards curing IE.Apart from that, the site's looking good.
Namaste, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantHi,
I see you're going old-school PHP using lots of includes. 🙂 Here's an example of a typical include if the file is in the same folder as your child theme:require_once( CHILD_DIR . '/custom_functions.php' );
Unless you have a huge amount of PHP code, I would just use a function along with a Genesis hook to get your goodies into the template. But here's an example of how you could conditionally pull in the above code.
add_action( 'genesis_before_post_content', 'my_lovely_function' );
function my_lovely_function () {
if ( is_page(42) ) {
require_once( CHILD_DIR . '/custom_functions.php' );
}
}
To get a list of the hooks (genesis_before_post_content is the hook I'm using here), check out the Visual Hook Guide.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantVisual composer... interesting. Glad you're all set. There are scads of nice sliders out there these days.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 14, 2013 at 8:58 am in reply to: Minimum Theme: Removing the 'Sorry, no posts matched your criteria' #26179David ChuParticipantLouise,
Great! Glad that helped!Chris,
Sure, someone could do that. But many Genesis-ers don't program. Also, there are many ways to do anything in Genesis. In my custom themes, for disappearing the above I would write a tiny bit of PHP code, and would not need a home.php at all - I almost never use one even for fully tricked-out homepages. Lastly, when working with an official Genesis child theme, many already have a home.php, and if the person is not a skilled coder, the chance of breakage is significant.Cheers,
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 14, 2013 at 7:52 am in reply to: Minimum Theme: Removing the 'Sorry, no posts matched your criteria' #26166David ChuParticipantThis is a bit more precise. I would suggest taking a look at the HTML so you can see what's being done. #content holds content and #sidebar holds, you guessed it, the sidebar. 🙂
.home #content {
display: none;
}As the other guy said, this is sort of a hack, but it will work. One can also remove the actual HTML, but that requires a pinch of function programming.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantI would suggest checking:
Genesis... Theme Settings.... Default Layout
You may need to re-select the layout here. You can also select the layout for individual Pages and Posts when you edit them.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 13, 2013 at 10:40 am in reply to: show full post text on edited 'pretty young thing' theme #25879David ChuParticipantGreat!
Though PHP code can be scary, for some things a fix or modification can go very quickly if you get a coder in there, or advice from coders.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 13, 2013 at 9:12 am in reply to: show full post text on edited 'pretty young thing' theme #25856David ChuParticipant🙂
Yes, SO many premium themes from any company have a special Home template. So it's a "usual suspect".
So apparently some programming required. If you're going to tackle it, you may bear fruit by knowing the difference between the_excerpt vs. the_content. Unless the programmer did something even more specific and loop-related, which is very possible. If you're able to get it going the way you like with the above, be sure to back up your work.... otherwise, when you install a theme update, it will knock out your carefully done changes!
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 13, 2013 at 8:02 am in reply to: show full post text on edited 'pretty young thing' theme #25837David ChuParticipantAh, I wondered if that might be the case. Any Pretty Theme geeks, viewing this, by chance? 🙂
One question would be: if you changed to "Display Post Content", did that alter your non-Home pages at all, such as any Archive pages? I doubt it, based on what you said, but if so, then the answer would probably be found in a homepage template, which would be home.php, and that would mean some theme file hacking required.
In your My Studiopress section for downloads, you should see a "Get Started" section that may shine a lot on this. But that's boilerplate advice. 🙂 Yes, maybe try asking support directly.
Good luck.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 12, 2013 at 8:39 pm in reply to: show full post text on edited 'pretty young thing' theme #25769David ChuParticipantHi,
I don't know the PYT theme too well, but...Did you go to Genesis... Theme Settings... and then under "Content Archives", chose "Display Post Content"?
I think you might have, based on what you said.... if that doesn't work, unfortunately some template changes might be needed. These custom themes sometimes have special loops. Also, if there are any items in the Genesis menu specific to Pretty Young Thing, I'd look there, too.
Hope that helps,
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantHi Joyce,
That's a very nice site, and an interesting problem. I do see the code you were looking at. I would say that the basic reason the hover doesn't work is simple. The cause, somewhat less so.
Essentially, on that page the hover doesn't show the background because there's no HTML that has the class of "bg-background-hover" that I can see. You do have some Javascript errors, and I wonder if some jQuery from a plugin may have been providing that class before your upgrade broke it? You could look and see if any jQuery-related plugins have an update. That's my best guess.
If some plugin is shot, one could code some jQuery to make that happen again. It would take some programming, maybe not too bad. One could also do it with CSS with some finagling. It's possible that some custom CSS may have gotten torched by the upgrade, too.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantToni,
That's an interesting question! I have run into this a bunch of times. The way the Genesis background image processing works is that it's treated as the background image. That means it doesn't really have any weight, so to speak, so the text widget doesn't "see" it, and just gets shuffled over the top of it.
What I often do is to not use the custom background at all, and instead use a hook to place actual HTML with an IMG tag in the header so that if the image is wide, it will reduce at smaller sizes. It then "has weight".
Here's something a little less drastic you could do if you're handy with CSS. At small tablet size, you could increase the min-height of the header. Then you could put a large margin on top of the text widget, which would push it down, then adjust to taste so that it looks good with the logo.
Or something even easier... just vanish the text widget at small tablet level.... you have the address and phone listed below in your map! 🙂
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantIE8 is indeed really
stupidbad with images. I have used explicit width to fix it. Your method is actually better, because it's more generalized - I'd never tried "auto". So as far as I know, you have used the best method!Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
March 11, 2013 at 5:30 pm in reply to: Need a good child theme with genesis for a restaurant review site. #25533David ChuParticipantHi, That's an interesting question. I have a food blog, and I'll occasionally do restaurant reviews, but it's just a regular blog.
If I were looking for something of this description, I would take a different tack - I would test review plugins to find the one I liked best, and then I'd see what design would not only look good with those reviews, but would present the best ambiance of the types of reviewing I'd be doing.
To me, Magazine or Metro might be nice, because they're well-suited to news publishing.
I hope that's of some help.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantYour site doesn't look anything like the Enterprise demo. It doesn't even look like you're accessing the home.php template at all, the HTML code is nothing like that template. So I'm guessing you have your site set in a way that the theme isn't expecting - take a look at the documentation that was provided with the theme. That's always the best stop for any question like this.
I don't have Enterprise, so I'll have to defer to others. But in many Genesis themes the custom home template is put to use only when you have a default WP set up - that is, set your site is set to use your latest Posts on the homepage, Doing things like choosing a static Page for Home overrides a home template for many themes. That's the best hint I can give you.
Good luck.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
David ChuParticipantHi,
Back up the file first, but I believe that if you delete the following lines, you should be all set.
if ( function_exists( ‘wp_cycle’ ) )
wp_cycle();
If the context needs it, you could also remove the 2 lines that surround this code, which would take the Cycle's container DIV out.
If all that sounds nerve-racking, at all disabling the WP-Cycle plugin should do the trick, too.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
-
AuthorPosts