I wrote a sentence using <div class=”col-md-4 col-sm-6″> but doesn’t work, I thought all wordpress themes use Bootstrap already. Isn’t it?
Thanks, regards!
]]><?php
$loop = new WP_Query( array( 'post_type' => 'careers', 'posts_per_page' => 35) ); ?>
<?php $c = 1; ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading-<?php the_ID(); ?>">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-<?php the_ID(); ?>" aria-expanded="true" aria-controls="collapse-<?php the_ID(); ?>">
<?php the_title(''); ?> <span> <?php the_field('careers_date'); ?> </span>
</a>
</h4>
</div>
<div id="collapse-<?php the_ID(); ?>" class="panel-collapse collapse <?php if( $c == 1 ) echo 'in'; ?>" role="tabpanel" aria-labelledby="heading-<?php the_ID(); ?>">
<div class="panel-body">
<?php get_template_part( 'content', 'page' ); ?>
</div>
</div>
</div>
<?php $c++; ?>
<?php endwhile; ?>
]]>If I do:
<?php if(is_archive())
wp_nav_menu();
?>
I get a all top level pages, and if I try
<?php if(is_archive())
wp_nav_menu( array( 'theme_location' => 'main_nav' ) );
?>
I get nothing, and if I register a new theme location and nav and try calling that in the array I also get nothing.
I’m using wordpress-bootstrap
Any idea’s at all would be appreciated.
]]>I’m looking for a pretty basic function that will change my logo depending on what page that user is on.
Currently my logo is called like so:
<a href="<?php echo home_url(); ?>"><img src="<?php echo home_url(); ?>/wp-content/uploads/2014/01/logo.jpg"></a>
Some solutions i’ve come across all seem to be theme specific where they have built it into a function.
Any help appreciated!
]]>The theme is wordpress bootstrap from 320press.
When load the less css files I am seeing an XMLHttpRequest error.
You can see the error at https://tracesofviolet.com in your browser console.
TIA,
Tim J