Customizing SMF > SMF Coding Discussion
Custom Header Above Theme
MrFarbodD:
Hey guys, so I have a theme on my wordpress website which has a header. Now I want to put the that header on my forum, so I installed this mod: http://custom.simplemachines.org/mods/index.php?mod=351
But the problem is the directories are different and I was wondering if there was a code which would tell it to go here: /wp-content/themes/leetpress/
If it wanted to grab any pictures or anything.
Or do I have to change all the directories manually myself?
SMF Version: 2.0.2
WP:3.4.1
Thank you! :)
EDIT: Here's the code I want to put as my header.
--- Code: --- <!-- BEGIN TOP NAVIGATION -->
<ul id="top-navigation">
<?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'top-menu' ) ); ?>
</ul>
<!-- END TOP NAVIGATION -->
<!-- BEGIN SOCIAL MEDIA -->
<div id="social-media">
<?php if(get_option('lp_disable_facebook') == 'false') { ?><a href="http://www.facebook.com/<?php echo get_option('lp_facebook'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook.png" alt="Facebook" /></a><?php } ?>
<?php if(get_option('lp_disable_twitter') == 'false') { ?><a href="http://www.twitter.com/<?php echo get_option('lp_twitter'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter.png" alt="Twitter" /></a><?php } ?>
<a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to our feed"><img src="<?php echo get_template_directory_uri(); ?>/images/rss.png" alt="RSS" /></a>
</div>
<!-- END SOCIAL MEDIA -->
<!-- BEGIN LOGO -->
<div id="logo">
<?php if(get_option('lp_logo')) { ?>
<a href="<?php echo home_url(); ?>"><img src="('lp_logo'); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a>
<?php } else { ?>
<a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" alt="<?php bloginfo( 'name' ); ?>" /></a>
<?php } ?>
</div>
<!-- END LOGO -->
<?php if(get_option('lp_header_banner')) { ?>
<!-- BEGIN HEADER BANNER -->
<div id="header-banner">
<a href="<?php echo get_option('lp_header_banner_link'); ?>" target="_blank"><img src="<?php echo get_option('lp_header_banner'); ?>" alt="" /></a>
</div>
<!-- END HEADER BANNER -->
<?php } ?>
<!-- BEGIN NAVIGATION-WRAPPER -->
<div id="navigation-wrapper">
<!-- BEGIN NAVIGATION -->
<ul id="navigation">
<?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary-menu' ) ); ?>
</ul>
<!-- END NAVIGATION -->
<!-- BEGIN SEARCH -->
<div id="search">
<?php get_search_form(); ?>
</div>
<!-- END SEARCH -->
</div>
<!-- END NAVIGATION-WRAPPER -->
--- End code ---
Thanks.
Orangine:
this mod doesn't do what you want to do. you need to midify your index.template.php manually
also, you doesn't seem to call upon WP SSI in your code, so it won't work at all
MrFarbodD:
Thank you for your reply Orangine. What is the wordpress ssi? Because the code I supplied is from my theme which I have installed on wordpress.
Orangine:
The code you posted refers to WP internal functions, it will not work with SMF, unless WP offers similar functionality to SMF's SSI - I don't know if it does, you need to check it up on WP support forums
MrFarbodD:
Ok thanks. I think instead of trying to put the header into the forums I will put the forums into the site and remove width limits for that page.
Navigation
[0] Message Index
[#] Next page
Go to full version