WP Template integration

Page: 1

Author Post
Member
Registered: May 2010
Posts: 15
Hi ;

I 've read your instructions on "http://floatboxjs.com/wordpress/ " but there is no section like below in the header.php of my Wordpress Template .

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
--------- -----
<style type="text/css" media="screen">

I also searched top.php and I tried put floatbox lines in there (head section) but it didn't work.

My website is www.fnf4.com
and template site is http://smthemes.com/metropress/

Can you show me a way to implement floatbox to my wp template?

Thanks..

PS: Floatbox is working with floatboxplus wp plugin. But I dont want to use Floatbox-plus plugin as you recommended.
Administrator
Registered: Aug 2008
Posts: 3382
Unfortunately, the smthemes download page is broken and I can't get a copy of any of their templates to look at. Somewhere in the template, the document <head> section will be defined. You need to find the file that defines the <head> section and add the include lines to that.

If you wish to privately send me a link to your downloaded theme's zip file (use the contact form on this site), I'll take a look at that and see if I can locate the head section for you.
Member
Registered: May 2010
Posts: 15
Thanks for quick reply.

I posted theme download link via contact form
Administrator
Registered: Aug 2008
Posts: 3382
The head section is being written primarily by metropress\top.php.

I would insert the floatbox include lines right before the <style> element in that file.
	<?php  wp_head(); ?>

>>>>> insert floatbox include lines here <<<<<

<style type="text/css">
<?php echo $SMTheme->get( &#039;integration&#039;,&#039;css&#039; )?>
</style>
Member
Registered: May 2010
Posts: 15
Unfortunately it didn't work.. I put the lines into the top.php as you said.

<?php wp_head(); ?>
<link rel="stylesheet" type="text/css" href="/floatbox/floatbox.css" />
<script type="text/javascript" src="/floatbox/floatbox.js"></script>
<style type="text/css">
<?php echo $SMTheme->get( 'integration','css' )?>
</style>

I tested a sample page with below codes


TEST PAGE

<p class="floatbox" data-fb-options="group:demo1">Image Gallery<br />
<a href="http://fnf4.com/wp-content/uploads/2012/01/Modifiyeli-arabalar-2.jpg" title="Araba" data-fb-options="caption2:`Thailand, '03`">
<img src="http://fnf4.com/wp-content/uploads/2012/01/Modifiyeli-arabalar-2.jpg" />
</a>
</p>

Page link : http://fnf4.com/?p=1
Member
Registered: May 2010
Posts: 15
OK, I tested a new thing;

I changed theme options as below

http://i45.tinypic.com/jg2y2u.gif

While load content & post dynamically settings are Off and top.php like below

<?php wp_head(); ?>
<link rel="stylesheet" type="text/css" href="/floatbox/floatbox.css" />
<script type="text/javascript" src="/floatbox/floatbox.js"></script>
<style type="text/css">
<?php echo $SMTheme->get( 'integration','css' )?>
</style>

Floatbox is working ..

If there is no way I will keep this settings turned off and I will loose some functionality of theme , Or .. I will use floatbox-plus
Member
Registered: May 2010
Posts: 15
I have to fix my last words..

If there is no way I will keep this settings turned off and I will loose some functionality of the theme..

Flotbox-Plus wont help abdout dynamic content problem..
Your help already implemented floatbox to the theme..

Page: 1