boriskamp1991 (@boriskamp1991)

Forum Replies Created

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

  • boriskamp1991
    Participant

    @boriskamp1991

    Great tip, thanks! not using widgets areas but the used the the_widget() function!


    boriskamp1991
    Participant

    @boriskamp1991

    Perfect! thanks @robin-w

    In reply to: Mentions sitewide

    boriskamp1991
    Participant

    @boriskamp1991

    Thanks for your input Robin, do you have any clues on where to get started with this?


    boriskamp1991
    Participant

    @boriskamp1991

    Thanks for that!
    it gives an unexpected syntax error when I try to load my website.
    here is my header.php code
    any idea?

    <?php if ( ! isset( $_SESSION ) ) session_start(); ?>
    <!DOCTYPE html>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<title><?php elegant_titles(); ?></title>
    	<?php elegant_description(); ?>
    	<?php elegant_keywords(); ?>
    	<?php elegant_canonical(); ?>
    
    	<?php do_action( 'et_head_meta' ); ?>
    
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php $template_directory_uri = get_template_directory_uri(); ?>
    	<!--[if lt IE 9]>
    	<script src="<?php echo esc_url( $template_directory_uri . '/js/html5.js"' ); ?>" type="text/javascript"></script>
    	<![endif]-->
    
    	<script type="text/javascript">
    		document.documentElement.className = 'js';
    	</script>
    
    	<?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    	<header id="main-header">
    		<div class="container clearfix">
    		<?php
    			$logo = ( $user_logo = et_get_option( 'divi_logo' ) ) && '' != $user_logo
    				? $user_logo
    				: $template_directory_uri . '/images/logo.png';
    		?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    				<img src="<?php echo esc_attr( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="logo" />
    			</a>
    
    			<div id="et-top-navigation">
    				<nav id="top-menu-nav">
    				<?php
    					$menuClass = 'nav';
    					if ( 'on' == et_get_option( 'divi_disable_toptier' ) ) $menuClass .= ' et_disable_top_tier';
    					$primaryNav = '';
    
    					$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => 'top-menu', 'echo' => false ) );
    
    					if ( '' == $primaryNav ) :
    				?>
    					<ul id="top-menu" class="<?php echo esc_attr( $menuClass ); ?>">
    						<?php if ( 'on' == et_get_option( 'divi_home_link' ) ) { ?>
    							<li <?php if ( is_home() ) echo( 'class="current_page_item"' ); ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Home', 'Divi' ); ?></a></li>
    						<?php }; ?>
    
    						<?php show_page_menu( $menuClass, false, false ); ?>
    						<?php show_categories_menu( $menuClass, false ); ?>
    					</ul>
    				<?php
    					else :
    						echo( $primaryNav );
    					endif;
    				?>
    				</nav>
    
    				<div id="et_top_search">
    					<span id="et_search_icon"></span>
    					<form role="search" method="get" class="et-search-form et-hidden" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    					<?php
    						printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
    							esc_attr_x( 'Search &hellip;', 'placeholder', 'Divi' ),
    							get_search_query(),
    							esc_attr_x( 'Search for:', 'label', 'Divi' )
    						);
    					?>
    					</form>
    				</div>
    
    				<?php do_action( 'et_header_top' ); ?>
    			</div> <!-- #et-top-navigation -->
    		</div> <!-- .container -->
    		<?php if(! is_front_page()) { 
    }?>
    	</header> <!-- #main-header -->

    Thanks!


    boriskamp1991
    Participant

    @boriskamp1991

    Ok,thanks for that!

    I need to add this code somewhere:

    <div class="breadcrumbs">
        <?php if(function_exists('bcn_display'))
        {
            bcn_display();
        }?>
    </div>

    It is for displaying the breadcrumbs.
    When I add it to header.php in my theme, the breadcrumbs appear on allll my pages. I dont want that, I want them ONLY on forum related pages, how can I achieve this?


    boriskamp1991
    Participant

    @boriskamp1991

    Why are my links not shows in my reply???
    *edit, now they are, thats wierd


    boriskamp1991
    Participant

    @boriskamp1991

    Thank you for your reply Robin!

    Glad to know that! I would really like the breadcrumbs, I will try to contact the theme developer to ask them about the breadcrumbs. Normally they should appear without setting something up?

    By

    “Also, is it possible to get all the topic pages, forum pages (basically all pages that are related to the forum) on a custom page?”

    I mean:
    I setup a custom page to be the /forum page, like this one: http://www.militaryscalemodelling.com/forum/
    I like this because I can create the layout myself.
    Is this also possible with the other forum and topics pages? like these pages:
    http://www.militaryscalemodelling.com/forums/forum/armor/
    http://www.militaryscalemodelling.com/forums/topic/135-d9r-bulldozer-build-log/

    As you can see, the layout of the above two links is different from the first mentioned link.
    Do you understand me?

    Thanks for trying to help!

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