Recent Topics

1 Jul 01, 2009 13:00    

My b2evolution Version: Not Entered

On my best days, I am marginally competent as a human being, and far less so at CSS. God bless whoever is willing to put up with me – I promise, I did try to search and deal with this myself.

I’d like to install a banner ad to the top of my photoblog-skinned web page. If I understand how these things work, I’m going to want to create a body_header file and throw the banner in there. I don’t know how to match the formatting of the rest of the skin in the header, or center the banner.

This is obviously a touch remedial for most of you. Rest assured that, in life, I am a remedial sort of guy.

Thanks for whatever help you can give me,

Joe

2 Jul 01, 2009 13:39

Hi Joe and welcome to the forum
A well scripted first post....
A quick way to do this would be to open the index.main.php for that skin and find...

<div class="pageHeader">

	<div class="top_menu floatright">
		<?php
			// ------------------------- "Menu" CONTAINER EMBEDDED HERE --------------------------
			// Display container and contents:
			skin_container( NT_('Menu'), array(
					// The following params will be used as defaults for widgets included in this container:
					'block_start' => '',
					'block_end' => '',
					'block_display_title' => false,
					'list_start' => '',
					'list_end' => '',
					'item_start' => ' ',
					'item_end' => ' | ',
				) );
			// ----------------------------- END OF "Menu" CONTAINER -----------------------------
		?>
		<a href="<?php $Blog->disp( 'mediaidxurl', 'raw' ) ?>"><?php echo T_('Index') ?></a>
	</div>

Just after <div class="pageHeader"> I would place a new <div class="makealotofmoney">Banner code goes here</div>

In your style.css add div.makealotofmoney {text-align:center;margin:10px;} naturally use the css to style it to suit


Form is loading...