WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add HTML (6 posts)

  1. vinceboul03
    Member
    Posted 1 year ago #

    Hi guys,
    I am tired of wasting my time so please help me.
    I just want to add a paypal button to one of my blog page. So it is just a html code that I add to my page but... this is not working.
    Why?
    I tried some plugins, but no solutions.

    Thanks in advance!

  2. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    So it is just a html code that I add to my page but... this is not working.

    What is not working? Are you getting errors? How are you adding it to your page? Please post a link showing the page you are having a problem on.

  3. vinceboul03
    Member
    Posted 1 year ago #

    Ok, no, it just showing the html text. Here is the link.

    Thanks.

  4. Luis Abarca
    Member
    Posted 1 year ago #

    Did you pasted the code in HTML View ?

    Try to create a short code instead in functions.php of your current theme.

    function paypal_button_func( $atts ){
     return 'all your html code here';
    }
    add_shortcode( 'paypal_button', 'paypal_button_func' );

    The in your page or entry, add [paypal_button] in place

  5. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    It would be better to use a child theme. Otherwise when your theme gets upgraded you will loose the code from Luis.

  6. vinceboul03
    Member
    Posted 1 year ago #

    Wow! thanks Luis. I dont really know what I did but the button appeared like magic haha.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags