Forum Replies Created
-
AuthorPosts
-
FireSamuraiMember
Hey there,
For some reason the latest changes to Genesis prevents the filter text from working correctly. You have to change out the entire footer. This is out I did it on my site:
<script src="https://gist.github.com/FireSamurai/5889789.js"></script>
Of course, you can change out the text to be whatever you'd like it to be (most people will probably be good with just changing out the last part of the $myCreds parameter). Hope that helps.
January 20, 2013 at 12:35 pm in reply to: AgentPress 2.0: How to stretch header & footer to the full width of the screen? #13299FireSamuraiMemberAlan,
Instead of changing color to background-color you should just add background-color as a new property. Color is the color of the text while background-color is, well... the background color. By changing color to background-color you're removing the text color property for the footer id selector.
January 18, 2013 at 2:01 pm in reply to: AgentPress 2.0: How to stretch header & footer to the full width of the screen? #12915FireSamuraiMemberUpdateAlan,
You'll want to remove the width property from both #header and #footer in style.css. However, this will make them so the content bumps right up against the left and right edges of the monitor, so I would recommend adding in some padding:
#header { color: #fff; margin: 0 auto; min-height: 125px; padding: 0 20px; text-shadow: 1px 1px #000000; } #footer { color: #ccc; font-size: 12px; margin: 0 auto; overflow: hidden; padding: 20px; text-transform: uppercase; }
Hope that helps.
January 18, 2013 at 1:47 pm in reply to: AgentPress 2.0: How do I change the color of the default Primary Navigation bar? #12909FireSamuraiMemberCan we get a link to your site, so we can be sure we're looking at the same thing? From the sounds of it though, you need to change the background color in .sidebar:
.sidebar { background-color: #222222; /* <-- Your color here */ display: inline; float: right; font-size: 13px; padding: 15px 15px 5px; width: 250px; }
FireSamuraiMemberSure thing. I agree, it's a bit confusing.
FireSamuraiMemberFireSamuraiMemberJoe,
If you right-click on that page and go to 'View Source' and then do a search for the string at the top of the page ( http://www.myapt.org.uk/wp-content/uploads/2012/11/CYP-IAPT-Conference-4.jpg ), you'll see that it's being outputted between the head tags on your page. This could be coming from anywhere, really.
I'd check to make sure the code around the image is correct on your page editor where you enter the content. I would also check in Genesis > Theme Settings to make sure it's not in the Output to Header section.
FireSamuraiMemberOkay... feeling
a littletotally embarrassed here. It turns out after many attempts that I was in the wrong file; no wonder nothing I attempted worked. *facepalm*When I realized that, I went back to an earlier (and simpler) version and it's working just fine. The following code will display the CPT's categories on any page using `archive-[cpt].php` page template. Add this to your `archive-[cpt].php` page template. You will need to replace 'news_category' with whatever you used when registering your taxonomy.
add_filter( 'genesis_post_meta', 'news_post_meta_filter' ); function news_post_meta_filter( $post_meta ) { $news_taxonomy = get_the_term_list( $post->ID, 'news_category', 'Filed Under: ', ', ', '' ); $post_meta = $news_taxonomy . '[post_tags before="Tagged: "]'; return $post_meta; }
FireSamuraiMemberI have also attempted moving the conditional out of the filter function in this way, but with no luck:
/** Customize the post meta function for archive-news.php */ function change_news_post_meta_filter() { if ( is_page_template( 'archive-news.php' ) ) { add_filter( 'genesis_post_meta', 'news_post_meta_filter' ); function news_post_meta_filter( $post_meta ) { $news_taxonomy = get_the_term_list( $post->ID, 'news_category', 'Blah Under: ', ', ', '' ); $post_meta = $news_taxonomy . '[post_tags before="Tagged: "]'; return $post_meta; } } }
FireSamuraiMemberEzines,
You'll want to add a function with a conditional statement in your functions.php file, like this:
/** Remove the post meta function on homepage */
function my_remove_post_meta() {
if ( is_home() || is_front_page() ) {
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
}} -
AuthorPosts