Forum Replies Created
-
AuthorPosts
-
Mike Gosling
ParticipantHi Helena,
I have used your correct iframe code and the video is now displaying correctly. Thank you.
Perhaps StudioPress could provide a short training video on how to insert iFrames.Mike Gosling
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHi Helena,
Oops, the 750 x 150 px stuff was old html unrelated to the embedded video. It was an old video link which I have removed. It had no effect on the embedded video.
You are right - the issue is in the StudioPress style sheet. It's not my style sheet. I have not touched the theme css at all, and wouldn't know how to.
The issue is the video by http://player.ooyala.com does not work within my StudioPress theme, which is the issue that needs to be addressed by StudioPress. I have tried putting it in an iFrame - that didn't work either.
There seems to be no plugin that will allow ooyala.com videos to play in WordPress. Perhaps that is their intent - they don't want people putting their videos into WP sites.
Can StudioPress advise if there is a way to set the following script into the MagazinePro theme so the height is correct?
<script src="http://player.ooyala.com/iframe.js#ec=RzNXU0NToRfs386y87KXojEYcNhSgorD&pbid=21046400d6c84f29988e951b5aa85482"></script>Thanks,
Mike
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantWell no Helena, it's not sorted. The video is on the post page but does not display at the correct height. As I say above: The video has been truncated when published!
Please assist to get the video to display at the right height.
Mike Gosling
Dr. Mike Gosling, The Emotional Leader Program
September 13, 2014 at 12:23 am in reply to: Featured images not showing up in focus pro theme #124193Mike Gosling
ParticipantHi, I have managed to get my "Featured Images" to display okay by setting my Setting, Reading to A Static Page and selecting the page called "Blog". See http://bestfijiguide.com/
However, the link at the bottom of my Home page shows "Next Page", but when I click it it takes me back to my Home Page and not to my next page of featured posts (and yes I do have more posts to display).
Can you assist me please to get the link to display my next page of "featured posts".
Thanks, Mike Gosling
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantWell I apologize to everyone that this has gone on and on. The functions.php file really had me flummoxed! And thank you Rick for your email and to Anitac for the offer of online help. I shall keep these in mind.
And I apologize to you too Rick - Your code has indeed worked!! I sat down and really studied it and the bit that I had not inserted was the line:
add_action( 'genesis_after', 'custom_genesis_do_footer', 12 );
It all now works perfectly! Take a look - http://www.MikeGosling.com. Having the Footer widgets makes it all very easy to set up. Thank you all for persevering with me. I've learnt heaps and express my gratitude that you folks are out there willing to help.
For other Metro Theme users, here is Rick's excellent code I used to insert my footer widgets. I wonder if this code would work with other themes?
// Reposition the footer remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); remove_action( 'genesis_footer', 'genesis_do_footer' ); remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); add_action( 'genesis_after', 'genesis_footer_markup_open', 11 ); add_action( 'genesis_after', 'custom_genesis_do_footer', 12 ); add_action( 'genesis_after', 'genesis_footer_markup_close', 13 ); // Customize the content of your footer function custom_genesis_do_footer() { echo '<div class="gototop"><p>'; dynamic_sidebar( 'footer-left' ); echo '</p></div>'; echo '<div class="creds"><p>'; dynamic_sidebar( 'footer-right' ); echo '</p></div>'; } // Register left side footer area genesis_register_sidebar( array( 'id' => 'footer-left', 'name' => __( 'Footer Left', 'CHILD_THEME_NAME' ), 'description' => __( 'This is the left side of the footer.', 'CHILD_THEME_NAME' ), ) ); // Register right side footer area genesis_register_sidebar( array( 'id' => 'footer-right', 'name' => __( 'Footer Right', 'CHILD_THEME_NAME' ), 'description' => __( 'This is the right side of the footer.', 'CHILD_THEME_NAME' ), ) );
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHi Anitac, Thank you for your suggestion. I placed this code from the snippets folder into the functions.php file:
/** Customize the entire footer */ remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'custom_footer' ); function custom_footer() { ?> <p>© Copyright 2012 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">Admin</a></p> <?php }
What happens is the same as reported in my first post here. The footer appears in foot of the left column content section and not in the page footer. I have left it in my site for you to see. Please go to http://mikegosling.com. So it seems this snippet is insufficient for the Metro Theme.
Thanks, Mike
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHi Rick,
Well I gave it a go. Pretty much followed your instructions to the T, but got a heap of garbage at the top of my editor page in WP. So I'll move on now to find someone who I can pay to fix it for me. Thanks, Mike
Here's the garbage I got when I added your code:
=======
// Add span class to widget headlines add_filter( 'widget_title', 'metro_widget_title' ); function metro_widget_title( $title ){ if( $title ) return sprintf('%s', $title ); } // Load Backstretch script and prepare images for loading add_action( 'wp_enqueue_scripts', 'metro_enqueue_scripts' ); function metro_enqueue_scripts() { // Load scripts only if custom background is being used if ( ! get_background_image() ) return; wp_enqueue_script( 'metro-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); wp_enqueue_script( 'metro-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'metro-backstretch' ), '1.0.0' ); wp_localize_script( 'metro-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) ); } // Register widget areas genesis_register_sidebar( array( 'id' => 'subnav-left', 'name' => __( 'Subnav - Left', 'metro' ), 'description' => __( 'This is the left side of the subnav section.', 'metro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home - Top', 'metro' ), 'description' => __( 'This is the top section of the homepage.', 'metro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-left', 'name' => __( 'Home - Middle Left', 'metro' ), 'description' => __( 'This is the middle left section of the homepage.', 'metro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-right', 'name' => __( 'Home - Middle Right', 'metro' ), 'description' => __( 'This is the middle right section of the homepage.', 'metro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom', 'name' => __( 'Home - Bottom', 'metro' ), 'description' => __( 'This is the bottom section of the homepage.', 'metro' ), ) ); genesis_register_sidebar( array( 'id' => 'after-post', 'name' => __( 'After Post', 'metro' ), 'description' => __( 'This is the after post section.', 'metro' ), ) );
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHey Rick, I've just seen your post above - I'll give it a try. Thanks, Mike
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantThank you Anitac - I was able to FTP the functions.php file and the site has returned to normal. I won't put anything there again until I'm sure it will work and not crash my site.
Below is the code I got from BrianGardner.com (Which runs on Metro - although I expect he has customized his site). Unfortunately Brian does not say where to place the code, so I put it into the functions.php file. But it does not seem to like the code.
Maybe it's the <?php? I've posted the code with the <?php and without it. Still the code appears in the content section and not the footer. Any ideas?
Thanks, Mike
=========
<?php
// Customize the return to top of page text
add_filter( 'genesis_footer_backtotop_text', 'custom_footer_backtotop_text' );
function custom_footer_backtotop_text($backtotop) {
$backtotop = '[[footer_backtotop text="Return to Top"]]';
return $backtotop;
}// Customize the credits
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
function custom_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright © ';
echo date('Y');
echo ' · <a href="http://mydomain.com">My Custom Link</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
echo '</p></div>';
}// Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer() {
?>
<p>© Copyright 2013 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">Admin</a></p>
<?php
}
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantWell I've tried every which way to get this to work, without success. All I get for my trouble is an ERROR:
Parse error: syntax error, unexpected '<' in /home/goslingm/public_html/wp-content/themes/metro/functions.php on line 163
So in the absence of advice from StudioPress I'll abandon trying to get it right.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantThank you for your suggested code and appreciate your help.
But I need to retain the code I have with my affiliate link etc. The problem is where the code is appearing - currently at the bottom of the content section rather than in the footer section. There seems to be a hook missing that will place the code in the correct place and supercede the current footer code.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantThank you, Derek. That was the missing link. All set now.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantMike Gosling
ParticipantI'm advised that I need to create a css rule for #nav and add css for it in order to do what I need. That will correct the color above the header. (also add clear:both; to the css for #header). Unfortunately this is all jargon to me.
If anyone reading this post is willing to complete this task for me for a fee paid by Paypal, please contact me with details at [email protected].
Thanks.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantIt's all good now, thank you. There must have been a delay in the refreshing of my site.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHi Sanjeev,
I have removed both my '411' widget and the 'Recent Posts' widget as you suggest. Now when I add a new 'Recent Posts' widget to the sidebar it does not appear at all.
Could this be because there appears to be an additional </div> tag in the widget area. I count 4 x <div> and 5 x </div>:
<div id="sidebar" class="sidebar widget-area">
<div class="widget widget_text"><div class="widget-wrap"><h4 class="widgettitle">Primary Sidebar Widget Area</h4><div class="textwidget"><p>This is the Primary Sidebar Widget Area. You can add content to this area by visiting your <a href="http://mikegosling.com/wp-admin/widgets.php">Widgets Panel</a> and adding new widgets to this area.</p></div></div></div></div>
</div><!-- end #content-sidebar-wrap -->
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantThank you. That is helpful to know about the #nav.
Are you able to advise me how to correct the header area after inserting: ul.menu-primary {
Please view the header at http://www.KarenGosling.com
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantHi, I have changed the CSS to include ul.menu-primary {
This has now removed the top navigation space and placed the primary navigation bar into the Header space, which has distorted the columns in my header and will likely mean the nav bar will disappear when I add an image in the header space.
Please advise.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantI have now set the CSS as follows:
.menu-secondary ul,
#header .menu ul {
float: left;
width: 100%;
}
.menu-primary ul {
width: auto;
float: right;
}
There is no change - The primary menu still aligns left and not right.
Please advise further.
Dr. Mike Gosling, The Emotional Leader Program
Mike Gosling
ParticipantOk, thanks and sorry. Site is: http://karengosling.com
Dr. Mike Gosling, The Emotional Leader Program
-
AuthorPosts