badincite
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Center slider images without changing aspect ratiosSo there no way to scale a image down to fit the container height and center it?
Got my customizr css updated to 3.1.6.
Forum: Fixing WordPress
In reply to: Catch first image or video and returnFound this function to grab the video but doesn’t seem to be working how can I combine the two and get them working?
function catch_video() { global $post, $posts; $first_vid = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_vid = $matches [1] [0]; if ($output == '1') { echo '<iframe width="450" height="310" src="'; echo $first_vid; echo '" frameborder="0" allowfullscreen></iframe>'; } }
Forum: Plugins
In reply to: Cant get excerpt() to appearGot it needed
<?php $id = 247; $temp = $post; $post = get_post( $id ); setup_postdata( $post ); ?>
Forum: Themes and Templates
In reply to: [Customizr] Center slider images without changing aspect ratiosI want the full size slider but I want the images scaled to height not width.
What I want when image cant fill the page
What I want when image can fill the page without cropping
What happens when full width isnt selected and image can fit page without cropping
Forum: Themes and Templates
In reply to: [Customizr] Center slider images without changing aspect ratiosI guess I was thinking wrong Here’s my site its chopping the top of the images I want them to be centered and scaled “keeping aspect ratio” to fit the height of the slider. and change the background of the slider to a color
Guess Ill do some tweaking to the css myself from what I can tell your gallery is just called gallery and the wordpress one is called gallery-1
Forum: Themes and Templates
In reply to: [Customizr] Changing permalinks messes theme upHere’s a whole page view
Forum: Themes and Templates
In reply to: [Customizr] Changing permalinks messes theme upHas nothing to do with the images it removes the formatting for the menu and footer
Forum: Themes and Templates
In reply to: [Customizr] Changing permalinks messes theme upRemoves my formatting and css that I inserted into the header and footer
With the new update the code to drop the catgories down a line doesnt work whats the new one? `.single-project.has-gallery .gallery#gallery-1 {
width: inherit;
}`Got it!
Used this code split it up https://wordpress.stackexchange.com/questions/121489/split-content-and-gallery
Add this to bottom of content-single-project.php
<div id="wrapper"> <!--start: Container --> <div class="container"> <?php $content = strip_shortcode_gallery( get_the_content() ); $content = str_replace( ']]>', ']]>', apply_filters( 'projects_description', $content ) ); echo $content; ?> </div> </div>
Change description.php to matches this code
<?php /** * Single project description * * @author WooThemes * @package Projects/Templates * @version 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $post; if ( ! $post->post_content ) return; ?> <div class="single-project-description" itemprop="description"> <div id="content"> <?php $gallery = get_post_gallery(); echo $gallery; ?> </div> </div>
Forum: Themes and Templates
In reply to: Striping content for text then picturesThis action here I guess grabs the descriptoin and meta navigation but I cant find where I can split it.
<div class="summary entry-summary"> <?php /** * projects_single_project_summary hook * * @hooked projects_template_single_description - 10 * @hooked projects_template_single_meta - 20 */ do_action( 'projects_single_project_summary' ); ?>
Nevermind got it just removed the navbar sections from the css file and it used my websites css.
Ahh okay that did drop it down to a new line but how can I get the summary all the way to the bottom of the page under everything.
By featured image do you mean the cover image section? I just did that and nothing appeared.