Embed not working with BlackFyre theme

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Embed not working with BlackFyre theme

Re: Embed not working with BlackFyre theme

by axew3 » Thu Feb 21, 2019 9:27 pm

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

Re: Embed not working with BlackFyre theme

by Slipscream » Thu Feb 21, 2019 9:16 pm

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!

Re: Embed not working with BlackFyre theme

by axew3 » Thu Feb 21, 2019 8:56 pm

substitute page-forum.php with the one here, into your active wp template folder:
page-forum.zip
(4.49 KiB) Downloaded 239 times

Re: Embed not working with BlackFyre theme

by Slipscream » Thu Feb 21, 2019 8:45 pm

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(); ?>

Re: Embed not working with BlackFyre theme

by Slipscream » Thu Feb 21, 2019 8:43 pm

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!

Re: Embed not working with BlackFyre theme

by axew3 » Thu Feb 21, 2019 8:37 pm

ok i see it is working now, but to adjust all things for your theme, on fly i see that you'll need:

1) into overall_footer.html code you added where this line:

Code: Select all

 if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,50); // change 50 to another value may 0 or 100 or 500. Top distance gap in px when page scroll top
you need to adjust changing into a more higher value, due to your header so hight.
so may change into

Code: Select all

 if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,400); // change 50 to another value may 0 or 100 or 500. Top distance gap in px when page scroll top
or some value that fit your header.

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.

Top