Jump to content
Sign in to follow this  
johnflower

functions.php not updating

Recommended Posts

johnflower

hi, i've added two functions to my functions.php site, but it doesn't seem to do anything to the template. i use the platform pro base theme. i posted one of the functions in another thread, but have not received a reply (the post says resolved, so dunno if anyone viewed it). the site: http://www.sillypoetry.net/ here's the code: first, i want to add a 'like' button to every post

function pagelines_loop_post_end() { ?>
	<div id="fb-root"></div>
	<script>
	window.fbAsyncInit = function() {
	FB.init({appId: '177722492240937', status: true, cookie: true,
	xfbml: true});
	};
	(function() {
	var e = document.createElement('script'); e.async = true;
	e.src = document.location.protocol +
	'//connect.facebook.net/en_US/all.js';
	document.getElementById('fb-root').appendChild(e);
	}());
	</script>
	<fb:like action='like' colorscheme='light'
	layout='standard' show_faces='false' width='200'/>
	<?php }
and then i'd like to add an h1 header to my home page, just below two boxes i placed right below the menu. i added this:
	function pagelines_inside_top_maincontent() { ?>
		<h1 class="homepage-main-heading">Latest Silly Poetry</h1>
	<?php }

it doesn't show up though. what's wrong?

Share this post


Link to post
Share on other sites
Andrew

Looks like you're using FBML here... not sure that's going to work... Did you first see if you could output something like `John is testing some hooks ;)` ? Andrew

Share this post


Link to post
Share on other sites
johnflower

hi mr powers. it is indeed FBML. i removed it, however, and the

	function pagelines_inside_top_maincontent() { ?>
		<h1 class="homepage-main-heading">Latest Silly Poetry</h1>
	<?php }
	

one still doesn't want to work. any suggestions?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×