Tagged: x
-
AuthorPosts
-
March 29, 2016 at 2:36 am #856337
I need to add a donate button to Donate 9. I’ll learn someday, but for now…
Please see attachment
March 29, 2016 at 3:15 am #856381Hey there,
Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
March 29, 2016 at 3:35 am #856412I did provide a screen shot. The link is beta.sjhp.org
What I want is to put a simple paypal link in the top bar of renew 9.
The code you guys gave me for integrity is this:
// Add Donation Button
//============================================================//add_filter(‘wp_nav_menu_items’,’add_donate_button’, 99999, 2);
function add_donate_button( $items, $args ) {
if( $args->theme_location == ‘primary’ ){
$items .= ‘<li class=”menu-item menu-item-search”>’;
$items .= ‘‘;
$items .= ‘‘;
}return $items;
}It worked perfectly. I hope this helps
March 29, 2016 at 3:37 am #856417A similar site is http://bustersvisionregistry.org
March 29, 2016 at 4:58 am #856514Hi Charliesa,
Do you want to add a donate button in the topbar of your site like this: http://prntscr.com/alh4gf? If so, first add following code under Header > Topbar > Topbar Content in the Customizer:
<a href="#" class="x-btn x-btn-mini x-btn-transparent donate-btn">Donate</a>
Then add following CSS code under Custom > CSS in the Customizer:
.x-topbar .donate-btn { margin-left: 10px; border-color: #fff; display: inline-block; margin-bottom: 6px; }
Thank you!
March 29, 2016 at 5:35 am #856540This reply has been marked as private.March 29, 2016 at 5:36 am #856545For site http://beta.sjhp.org
Sorry
March 29, 2016 at 5:51 am #856573Man, you guys dined lead me be the nose. Now O got what you meant. I habit. Thanks again!
March 29, 2016 at 5:55 am #856582Man, you guys didn’t lead me by the nose. I got it now. Thanks again. (please ignore the last comment..I was tri-tasking, and I’m not good at).
March 29, 2016 at 6:02 am #856592Got it! it works perfectly…thanks. And it was easy too :).
March 29, 2016 at 6:49 am #856673We’re delighted to assist you with this.
Cheers!
-
AuthorPosts