Jump to content


Photo
- - - - -

Hook Not Following Css

hook css social button

  • Please log in to reply
5 replies to this topic

#1 stano7

stano7

    Advanced Member

  • Members
  • 49 posts
  • Country: Country Flag

Posted 05 November 2012 - 11:25 AM

I tried this code below in the functions.php file in my child theme to add a button using a hook. Everything worked but the button is very small under my social icons in the header section. Shouldn't it be at the end of the social section and follow the CSS for the social bar as adding another social button would?. How do I change this so that the button is at the end of the social media section.

Code placed in functions.php:

add_action('pagelines_branding_icons_end', 'my_paypal_pay');
// function name
function my_paypal_pay(){
?>
<div class="my_paypal_pay"><a href="

Please Login or Register to see this Hidden Content

src="

Please Login or Register to see this Hidden Content

width="98" height="22"></a>
</div>
<?php }

Here is the site:

Please Login or Register to see this Hidden Content



#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 05 November 2012 - 04:32 PM

What CSS do you have for the <DIV> layer my_paypal_pay? Do you have this CSS configured in Custom Code > Custom CSS?

#3 stano7

stano7

    Advanced Member

  • Members
  • 49 posts
  • Country: Country Flag

Posted 05 November 2012 - 04:41 PM

The CSS is added in the child theme style sheet. Div class my_paypal_pay.

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 05 November 2012 - 06:19 PM

What is the entire code you used for it?

#5 stano7

stano7

    Advanced Member

  • Members
  • 49 posts
  • Country: Country Flag

Posted 05 November 2012 - 08:09 PM




.my_paypal_pay {
  • height: 25px;
  • width: 80px;
  • margin-right: 50px;

}


The image png is 80px x 25px.


#6 batman

batman

    Bat Learning

  • Members

  • 1733 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 05 November 2012 - 09:13 PM

Hi stano7, I´m not sure but...
Please you can try with


Please Login or Register to see this Hidden Content

and

Please Login or Register to see this Hidden Content







Also tagged with one or more of these keywords: hook, css, social, button