Forum Replies Created
-
AuthorPosts
-
February 21, 2015 at 9:26 pm in reply to: How to move the post meta to the front of the breadcrumb output? #141696
Satrap
MemberThanks so much for this, and sorry for my very late reply. I had given up on this since I thought there was no way.
I did as you suggested, but sadly its not working. I don't get any errors since you fixed my coding mistake, but it doesn't display the post info in front of the breadcrumb output either.
Any other ideas?...
Thanks once again.
January 29, 2015 at 9:16 pm in reply to: How to move the post meta to the front of the breadcrumb output? #139008Satrap
MemberHi Lauren,
I can figure out the hooks and their locations, but I guess what I am confused about/ or are going wrong about it totally is...
Well, let me show you what I came up with first:
// Reposition the post info function remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_before_loop', 'genesis_post_info' );
And this is the closest I am able to get. But I guess my mistake was in that I thought there would be a way to hook the post info right after the Breadcrumbs by using something like this:
add_action( 'genesis_after_breadcrumbs', 'genesis_post_info' );
But this obviously doesn't work. I am assuming there is no such thing as "genesis_after_breadcrumbs". Is that correct?
And am I correct in assuming that the first code above is the closest I can get to positioning the post info next to the breadcrumb, and from there I have to use CSS to basically move it closer to the breadcrumb output and position the post info on the right side of it?
Thanks once again for taking time to help.
January 28, 2015 at 10:57 pm in reply to: How to move the post meta to the front of the breadcrumb output? #138929Satrap
MemberThanks Lauren.
That is exactly what I was trying to do, but I just can't get it to work. I know the issue is me not knowing how to hook the item correctly, but can't figure out how to do it correctly.
Thanks once again.
January 27, 2015 at 10:50 pm in reply to: How to move the post meta to the front of the breadcrumb output? #138812Satrap
MemberHi Brad,
Thanks so much for taking time to help, and I am very sorry for my very late reply. I totally forgot to check back here (from now on I will subscribe).
I read your post, and with my limited knowledge, I gather you mean to basically use a filter to customize the output of the Breadcrumb by basically including the post meta data in it.
Now I am sure this is not correct, but thats the only thing I could come up with which is to add the code for the post info with
the "$args['suffix']" as a new filter.Like so
add_filter( 'genesis_breadcrumb_args', 'child_theme_breadcrumb_modifications' ); function child_theme_breadcrumb_modifications( $args ) { $args['suffix'] = 'Updated on: ' .the_modified_date('F j, Y', '', '', false)</div></div>'; return $args; }
But it doesn't work and I get the error of having an unexpected " ' ".
Is that what you mean or am I doing it completely wrong?
Thanks again and sorry for being a total novice.
Satrap
MemberHi David,
Thanks for taking time to help.
I couldn't find any other occurrence of the "add / remove menu" function in other files.
I did reverse the order of statements as you suggested, and that didn't work either.
And I also did use priority numbers, but still no results.
Here is my function file if that helps: on github
Note: I am using a custom function plugin to house all of my functions. So, this is that plugin.And yes, I did try adding the code directly into the theme's function.php and that didn't work either. So, I don't think its an issue of having the code in theme's function.php instead of having it in a custom plugin.
Thanks in advance.
Satrap
MemberActually, I just looked at your site and found the solution for the CSS as well.
So, from your dashboard click on Appearance - Editor
This will bring up your CSS file for the current theme you are using..
Find this code (I think its line 1097 if you want to go through your FTP editor):
.header-image .site-title a { background-position: center top !important;
And change it to:
.header-image .site-title a { background-position: left center;
Now your logo should align to the left.
Satrap
MemberHere is how you can add a widget to the header right:
On your dashboard, go to Appearance - Widget
Once there, drag any widget from the left side (it can be Adsense code, a search form, or whatever you want) to the right side of the screen where it says Header Right (usually its the first widget).
Once you do that, the problem will be solved. You do not need to do anything with the CSS.
If you don't want to add a widget, then you have to mess with the CSS code, which unfortunately I can't help on that front.
Good luck.
-
AuthorPosts