Embed not working with BlackFyre theme

Slipscream
User w
User w
Posts: 7
Joined: Thu Feb 21, 2019 7:05 pm

Re: Embed not working with BlackFyre theme

Post by Slipscream »

2) you have to make fit correctly the page-forum.php into your theme, because it not seem to be well embedded as it need to be.
Open a default page.php theme, open page-forum.php, and may follow instructions on it to adjust.
What do you mean open a default page.php, open page-forum.php and follow instructions?

Thanks so far for the help!
Slipscream
User w
User w
Posts: 7
Joined: Thu Feb 21, 2019 7:05 pm

Re: Embed not working with BlackFyre theme

Post by Slipscream »

Here is code from my themes "page.php" file. Is this what you mean?

<?php get_header(); ?>
<?php if ( class_exists( 'BuddyPress' ) && bp_is_blog_page() ){?>
<div class="page normal-page container">

<div class="row">
<?php if(is_active_sidebar( 'buddypress' )){ ?>
<div class="col-lg-8 col-md-8">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<div class="clear"></div>
</div><!-- /.col-lg-8 col-md-8 -->

<div class="col-lg-4 col-md-4 ">
<?php if ( function_exists('dynamic_sidebar')) : ?>
<?php dynamic_sidebar('buddypress'); ?>
<?php endif; ?>
</div><!-- /.col-lg-4 col-md-4 -->

<?php }else{ ?>

<div class="">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<div class="clear"></div>
<?php if(comments_open()){ ?>
<div id="comments" class="block-divider"></div>
<?php comments_template('/short-comments-blog.php'); ?>
<?php } ?>
</div><!-- /.col-lg-8 col-md-8 -->

<?php } ?>
</div>

</div>

<?php }else{ ?>
<div class="page normal-page container">

<div class="row">
<div class="col-lg-12 col-md-12">
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
<div class="clear"></div>
</div>
</div>

</div>
<?php } ?>
<?php get_footer(); ?>
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Embed not working with BlackFyre theme

Post by axew3 »

substitute page-forum.php with the one here, into your active wp template folder:
page-forum.zip
(4.49 KiB) Downloaded 239 times
Slipscream
User w
User w
Posts: 7
Joined: Thu Feb 21, 2019 7:05 pm

Re: Embed not working with BlackFyre theme

Post by Slipscream »

axew3 wrote: Thu Feb 21, 2019 8:56 pm substitute page-forum.php with the one here, into your active wp template folder:
page-forum.zip
You sir ARE MY HERO!!!!!!!!!

Please explain what did you do? I was while waiting for your reply playing around in the inspector and had added a defined max width of 1160px, display: block and margin 0 auto. Achieved somewhat what I wanted but this is just sexy looking now!
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Embed not working with BlackFyre theme

Post by axew3 »

remove the code you added about width. It cause a little problem that the resizer by the way after adjust, but for a while it cause a problem onload. May remove.

I've just do this:

copied page-forum.php as is until (read inline hints)

Code: Select all

get_header(); 
?>
then your page need these wrappers:

Code: Select all

<div class="page normal-page container">
<div class="row">
// inside here i pasted the needed code
</div></div>
<?php get_footer(); ?>
the needed code, is inside page-forum.php
it start with

Code: Select all

<!-- START iframe div -->
and finish with
<!-- END iframe div -->
this just need to be pasted inside, where
// inside here i pasted the needed code

but you can understand this with easy looking into page.php code and page-forum.php original, and the one edited for you.

You lucky! I'm over on releasing new 1.9.6 that fix several things, complete mChat correct integration with preloader and something more just in some while
Post Reply