Forum Replies Created
-
AuthorPosts
-
styzerParticipant
Sorry, I have the same issue. I added the CSS suggested at the end of my style.css, but to no avail.
http://thresholdpublications.com/ortzion/
I would be surprised to have to use a plugin for this...
Thanks for any help!
Regards,
Andre
styzerParticipantOK, so here is the solution I applied:
1- In functions.php, I added this code near the top, right under:
//* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Generate Theme' ); define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/generate' ); define( 'CHILD_THEME_VERSION', '1.0.2' ); $content_width = apply_filters( 'content_width', 570, 450, 880 );
Here is the code I inserted:
//* Add custom body class to the head add_filter( 'body_class', 'sp_body_class' ); function sp_body_class( $classes ) { global $post; if ( is_page( '4' ) || (isset($post->post_parent) && $post->post_parent == 4)){ $classes[] = 'educate-class'; } if ( is_page( '12329' ) || (isset($post->post_parent) && $post->post_parent == 12329)){ $classes[] = 'advocate-class'; } if ( is_page( '12330' ) || (isset($post->post_parent) && $post->post_parent == 12330)){ $classes[] = 'celebrate-class'; } if ( is_page( '12331' ) || (isset($post->post_parent) && $post->post_parent == 12331)){ $classes[] = 'connect-class'; } return $classes; }
2- I created the 4 classes to insert in my style.css file AT THE VERY BOTTOM of the file, after everything (Generate theme has a double closing }, so right AFTER that). Here is what it looks like :
/* EDUCATE pages - different background */ .educate-class { background: #84b855; } .educate-class #inner { background-color: #84b855; } .educate-class #wrap { background-color: #6a9544; } /* ADVOCATE pages - different background */ .advocate-class { background: #f28c4d; } .advocate-class #inner { background-color: #f28c4d; } .advocate-class #wrap { background-color: #dc5b0b; } /* CELEBRATE pages - different background */ .celebrate-class { background: #e09ddc; } .celebrate-class #inner { background-color: #e09ddc; } .celebrate-class #wrap { background-color: #cd66cc; } /* CONNECT pages - different background */ .connect-class { background: #c2afe6; } .connect-class #inner { background-color: #c2afe6; } .connect-class #wrap { background-color: #673bb8; }
3- I select the appropriate parent for each child-page in the dashboard, so they will display the specific color.
Voila! Hope this helps someone else, this is by far the simplest and most effective way I've seen of doing it.
Regards,
Andre
styzerParticipantI was able to figure this out with the help of my nephew. I'll post the solution later!
Andre
styzerParticipantIf I select the "landing" template in "page edit," I see a stripe of green color on top, but no header... I'll keep playing with this and see. If anyone has any clue...
http://musicmakesus.ca/neweng/educate/
Regards,
Andre
styzerParticipantLooks like I also had a bit of a mess on my hands: of the 15 categories that were on this site, only 3 of them have any post, plus the uncategorized category. So 4 categories. The rest have no use. So in fact, I'm not working with categories templates, but pages templates.
styzerParticipantOK, getting somewhere!
I inserted this in style.css:
/* EDUCATE pages - different background */ .educate-class { background-color: #84b855; }
And this in functions.php:
//* Add custom body class to the head add_filter( 'body_class', 'sp_body_class' ); function sp_body_class( $classes ) { if ( is_page( '4' )) $classes[] = 'educate-class'; return $classes; }
Now something VERY strange happens. The new background color will ONLY show if I reduce my page to a certain size, like 50%. Only then can I see the new background color as a stripe on each side.
styzerParticipantNo joy, here... I found this on StudioPress though: http://my.studiopress.com/snippets/custom-body-class/
Add body class to a category page with an ID of 1: <?php //* Do NOT include the opening php tag //* Add custom body class to the head add_filter( 'body_class', 'sp_body_class' ); function sp_body_class( $classes ) { if ( is_category( '1' )) $classes[] = 'custom-class'; return $classes; } view raw category-1.php
I would like to be able to use this, then. However, I need clarity:
1- do I create a new file?
2- do I edit style.css?
3- any setting I need to do in the dashboard?Thank you ANYONE! I've been stumped for days and I'm getting very depressed, the more I try to figure it out, the more I feel something is wrong with my brain...
ANdre
styzerParticipantNot sure, Brad, maybe I'll try to take these out and see?
December 2, 2013 at 5:29 pm in reply to: Generate Theme: Genesis not eliminating breadcrumbs? #76698styzerParticipantIf I right-click on the white space where the bullets should display, and click View Background, the image opens in a new tab. Coming back to the page, then the bullets show. If I refresh the page, the bullets disappear again. I think i'm going to eliminate that fancy bullets and just use the browser's ones...
December 2, 2013 at 5:20 pm in reply to: Generate Theme: Genesis not eliminating breadcrumbs? #76696styzerParticipant(facepalm)... but of course! Thanks for helping me figure this out!
Another issue I have is that the list doesn't show the little bullets in Firefox, although I can see them in IE... that's the list on the home page: http://musicmakesus.ca/neweng/
Regards,
Andre
December 2, 2013 at 5:14 pm in reply to: Generate Theme: Genesis not eliminating breadcrumbs? #76692styzerParticipantThanks Andrea,
Thanks for replying...
Can't you see a duplicate title: Take Action Now ?
Regards,
Andre
styzerParticipantI was able to do what I was looking for using the plugin Nav-Menu-Image: http://wordpress.org/plugins/nav-menu-images/
Great!
styzerParticipantHi Brad,
If you are referring to the original site, I didn't make that one, it was designed by a team of people a few years ago as part of a multi-site project. I can't find how they made them. All I can find it the word "cufon" in the code. It was a twenty-ten theme I think, which was heavily customized. I'm trying to keep everything simple and non-multi-site.
Hope this helps,
Andre
styzerParticipantNot sure I understand, Brad. I guess what I'm aiming at is not only to make something work, but make it work from within the theme itself by a simple adjustment of the code. I looked at the css and js but could not find where to make the change. Should I be asking this on another thread?
Regards,
Andre
styzerParticipantThanks Brad,
I keep it in a widget as over time it serves my clients best. It's simpler for them to not have to edit php files.
This being said here's one for you: how could I make the subnav snappier? It kind of lays there for a second before showing submenus. I'd love to have them show content as soon as the mouse hovers.
Any idea?
Thanks!
Andre
styzerParticipantAh, so WordPrerss is using the Dynamic Content Gallery as its default slider. and the Metro child-Theme is using WP default gallery.
I found the solution: Easing Slider Lite - http://wordpress.org/extend/plugins/easing-slider/
Simple, straight-forward and no need to tweak anything. Install, click on Slideshow in the admin left menu, load the images (from Media or from upload), enter size, link URL, save. After your images have been loaded, and you see them in the Easing Slider dashboard, you can drag them around to affect their order. you can also edit the transition and pause speeds, navigation button, etc. Finally, open WIDGETS and use the Slideshow where you want.
Magnificently and brilliantly simple!
Thanks Brad for all the help anyways... 🙂
Andre
styzerParticipantI'm using the Dynamic Content Gallery which is the default for the Metro Theme.
styzerParticipantOnly on the homepage. http://iamsignificant.net/
styzerParticipantEven using that WP Gallery Custom, the gallery image leads to the attchment page and not the link I specified... Can you look and see if it's the same for you?
It should open this page : http://iamsignificant.net/experience-spiritual-direction/
Yet is opens the category page : http://iamsignificant.net/slider/becoming-love/
Maybe we shouldn't specify a category? The gallery method I selected is One Category.
Regards,
Andre
styzerParticipantHi Brad,
Thanks for the link. However, this I need to understand the process myself so I can explain it to the client, and any future ones. So far, that gallery doesn't have clear instructions. Can you figure it out? Why does it seem to obscure to use... ?
Music is very slow but steady, thanks!
Regards,
Andre
-
AuthorPosts