-1

How I can add images or edit html for the header and footers within wordpress.

I am looking in the header and footer sections under both "Theme Panel" and "Appearance" but can't figure out how to add html anywhere for adding the Google Play badge.

0

First of all, you can modify your header and footer from either using FTP client else from WP admin dashboard. if you are not familiar with FTP the please follow following steps.

1.Go to WP admin dashboard.
2.Under the Appearance menu, there is an option for edit theme. name it Edit.
3.In right side section list of files under the theme, ll be list.
4.Click on header.php and footer.php for edit header and footer accordingly.

please refer this for Google badge and paste the code in header or footer as per your needs.

I hope its useful and solve your issue.

1

You can edit your header and footer file or you can insert these codes in the functions.php file

function add_google_code($url="",$utm_code="",$utm_campaign=""){ ?>
<a href='<?php echo $url ?>?utm_source=<?php echo $utm_code ?>&utm_campaign=<?php echo $utm_campaign ?>&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.eps'/></a>

add_action('wp_head','add_google_code','#url','#utm_code','#utm_campaign');
add_action('wp_footer','add_google_code','#url','#utm_code','#utm_campaign');

Now save it and refresh the main site you can see your badge. You need to replace the

#url with your app url
#utm_code utm code with the utm code ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.