Forum Replies Created
-
AuthorPosts
-
mild0dMember
Thanks Lauren!
I was trying to do something similar, but was making it more complicated than needed!
Thanks!
mild0dMemberThanks for all your help, not only did you help me figure out my problem but my understanding of how genesis works has greatly improved!
This is what I came up with that worked for me.
I have that extra closing div at the beginning to break me out of the site container.
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_footer', 'genesis_footer_c'); function genesis_footer_c() { echo '</div><div class="myfooter">'; echo 'This is my Footer'; echo '</div>'; }
mild0dMemberIm really sorry I wasnt very clear and thanks for all the help so far.
So as of right now I am guesing that the default footer code is being generated from the parent theme since I have not specified anything yet. which is:
<footer class="site-footer" itemtype="http://schema.org/WPFooter" itemscope="itemscope" role="contentinfo"> <div class="wrap"> <p> © Copyright 2012 <a href="http://mydomain.com/"> My Domain </a> · All Rights Reserved · Powered by <a href="http://wordpress.org/"> WordPress </a> · <a href="http://mydomain.com/wp-admin"> Admin </a> </p> </div> </footer>
What I am am trying to do is make my own custom functions for the genesis_footer_markup_open and close. I am doing this so I can generate some extra classes and IDs on the footer element. Is this the correct way to do it? I don't want to just modify the <p> element. I want to pretty much generate my own footer element using a custom function.
There is probably an easier way to do this but I am still learning how this framework works.
Thanks for your patience with me!, I am probably making this more confusing than it actually is.
mild0dMemberSorry for the confusion,
I am trying to either add a additional div class or an id to do some custom styling on some elements I am having trouble with. All that is showing up now is a class on the footer element called "site-footer" I want to add an ID called "footer1" or something like that..
There may be an easier way to do that, i am just unsure at this point.
mild0dMemberI promise this will be my last question for the day. This is starting to become less fuzzy.
I am not sure if this is correct, but could I do something like this to make my own genesis_footer_markup_open and close functions?
`remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
add_action('genesis_footer','genesis_footer_custom_open', 5)
function genesis_footer_custom_open() {**Custom stuff here*****
}`
mild0dMemberSorry, But you give me an explanation of what the following code does:
//* Reposition the footer remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); add_action( 'genesis_after', 'genesis_do_footer', 12 ); add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );
I am confused as to what the numbers at the end are doing.
mild0dMemberOnce again thank you! If I would have scrolled down a little further i would have seen that.
April 7, 2014 at 7:15 am in reply to: Can someone explain the remove_action( 'genesis_loop', 'genesis_do_loop' ); #98851mild0dMemberThanks Andrea,
I can't look up genesis information without seeing your face! lol
Watch, I am gonna be a pro one day like yourself!
Dustin
mild0dMemberAh! thank you! I am just trying to wrap my head around everything!
Thanks again!
-
AuthorPosts