Notice: Use of undefined constant welcome_email_tpl_path - assumed 'welcome_email_tpl_path' in /home/admin/public_html/modules/welcome_email/welcome_email_settings.php on line 14
<br /> <b>Notice</b>: Undefined index: pretitle in <b>/home/admin/public_html/templates_c/c_83a3759803deca058ba9e82f3574d80d.php</b> on line <b>87</b><br /> GOP Hub - Social News and Networking for Conservatives<br /> <b>Notice</b>: Undefined index: posttitle in <b>/home/admin/public_html/templates_c/c_83a3759803deca058ba9e82f3574d80d.php</b> on line <b>87</b><br /> Notice: Undefined index: body_args in /home/admin/public_html/templates_c/c_83a3759803deca058ba9e82f3574d80d.php on line 95
>

GOP Hub Vote Button for your Blog

    The code for adding a GOP Hub Vote button to your blog is provided below. There are specialized Blogger instructions and WordPress instructions in addition to the manual code. There is a small button and a big button. Click here for help on changing the size of your button. The bigger button will show the number of votes for the post, if it has not been submitted yet, the button takes the user to the submit page. If you have any problems you are welcome to contact us for help.

    Manual HTML code for the vote button: (make sure to change targeturl.com to your site, also make sure this link is to your specific post, known as the permalink, and NOT to your root blog domain)




Button Types

    Currently there are 2 button types to choose from. To select between these simply edit the following line (from the block of code shown above, for example) to either 0 or 1 according to which one you want (notice that when following the WordPress instructions if you want to change sizes you will have to change this line in two different places):



    Button Type 0:


    Button Type 1:

Blogger / BlogSpot

    Three steps to integrating the GOP Hub vote button automatically for each post you make:

    Step 1:
    Go to your blog template -> Edit HTML -> expand the widgets -> and search for this line:



    Step 2:
    Replace that line with this code:



    Step 3:
    Click on Save Template. Enjoy!

WordPress

    First, you must be able to edit the template for your WordPress (meaning that this may not work on the free blogs hosted on WordPress.com). Six steps to integrating the GOP Hub vote button automatically for each post you make:

    Step 1:
    In WordPress admin area click on: "Presentation" -> "Theme Editor" -> on right side click "Main Index Template" (index.php) and search for this line:



    Step 2:
    Directly after that line paste this code:



    Step 3:
    Click on Update File. This adds the button to your main page, so we still need to add it for the single post page.

    Step 4:
    On right side click "Single Post" (single.php) and search for this line:



    Step 5:
    Directly after that line paste this code:



    Step 6:
    Click on Update File. That should do it. WordPress is sometimes grouchy about showing changes to the template, they should show up after you post a new post (you can just post a simple test post, then delete it).

Problems?

    Click Here to contact GOP Hub if you have any problems with this code.