• Resolved armon99

    (@armon99)


    I wish to place a banner adv at the top or top left of this site: http://www.weightlost4teens.com and i like to know which php file to edit and where exactly to place the script? If i have to do that in the functions.php then please let me know where to place the script.
    Many thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You’d need to create a child theme of Twenty Ten and then add your banner to the child’s header.php.

    Thread Starter armon99

    (@armon99)

    @esmi!
    I have already created a child theme. If i may ask, where exactly do i place the script of that banner in the child’s header.php?
    Thanks!

    That really depends upon where you want tor banner to be displayed. I’d suggest adding it to the very end of the file – just after <div id="main">.

    Thread Starter armon99

    (@armon99)

    @esmi!

    Here’s part of the codes:

    <div id="header">
    		<div id="masthead">
    			<div id="branding" role="banner">
    //D O  I  P U T  I T  H E R E??
    				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>

    [Please post code snippets between backticks or use the code button.]

    Thread Starter armon99

    (@armon99)

    @esmi!
    Thanks a lot. It works!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Banners in wordpress’ is closed to new replies.