Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Is it possible to dowsize the width of a featured image?


  #1  
Old Oct 1, 2012, 02:05 PM
letaulier
 
1 posts · Oct 2012
Hi,

Sorry for my bad English.
When I write a new post I like to feature an image in my blog. The problem is if, by example, the picture is a square I would like to have the beginning of my text just next to the photo (at the right) instead of a large empty space.

Thank you.
  #2  
Old Oct 8, 2012, 05:33 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yes, edit the virtual template 'postformat.php' and then change the values for the bfa_thumb() - you can read about the options by clicking the 'Limited PHP Code' tab at the top right of the screen.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 10, 2013, 03:20 AM
angelosbg
 
9 posts · Mar 2013
I am trying to follow your instructions. The thing is that with bfa_thumb() the change in values results in the different size of the picture but the border remains the same. Where are we able to change the borders? In the main template image.php I experimented with the two bold from below but it did not work. However this was just a guess.

<?php get_header(); ?>

<div id="main" class="row">

<div id="content" class="col12">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('cf image-attachment'); ?>>

<h1><?php the_title(); ?></h1>

<p>
<?php the_time( 'j M Y' ); ?> |
<a href="<?php bfa_parent_permalink(); ?>"><?php bfa_parent_title(); ?></a> |
<?php bfa_image_size(); ?>
</p>

<div class="post-bodycopy cf">

<div class="wp-caption">
<a href="<?php bfa_attachment_url(); ?>"><?php bfa_attachment_image(full); ?></a>
<?php bfa_attachment_caption(); ?>
</div>

Last edited by angelosbg; Mar 10, 2013 at 03:24 AM.
  #4  
Old Mar 10, 2013, 04:47 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
bfa_image_size();
bfa_attachment_image(full);
just where did you come up with these functions?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 10, 2013, 07:08 AM
angelosbg
 
9 posts · Mar 2013
Quote:
Originally Posted by juggledad
just where did you come up with these functions?

The functions were in the code. In the image.php. I am sorry for not mentioning before but I just tried the case that if I changed their values by putting numbers to the first one and changing full to medium in the second I might be able to change the borders. But it was just a guess while I was trying to find a solution and understand how the theme works.

What I cannot find out is how i can reduce the size of the border and make the excerpt of the article start from next to the featured image. Exactly what letaulier said.
  #6  
Old Mar 10, 2013, 08:03 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The only php code you can use in the virtual templates is what is described in the 'limited php code' tab without adding in a plugin.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 10, 2013 at 11:39 AM.
  #7  
Old Mar 10, 2013, 03:07 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by letaulier
I would like to have the beginning of my text just next to the photo (at the right) instead of a large empty space.
You can try this tecnhique. You can adjust the width of the div to whatever you like. The image should automatically shrink to the width of the div, and the text should wrap around it.
  #8  
Old Mar 10, 2013, 08:25 PM
angelosbg
 
9 posts · Mar 2013
Thanks a lot jerryc for your reply. I know it may sound a silly question but I do not know where to place the html code you provide in the technique. For example if I go to the content.php that you mentioned I am not aware where it can be used. And without solving this issue I cannot even use this template at all. It is difficult to find all the time featured images with that length.

Last edited by angelosbg; Mar 10, 2013 at 10:53 PM.
  #9  
Old Mar 11, 2013, 03:27 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
just of to the virtual template postformat.php and change the parameters of this line
HTML Code:
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>
to
HTML Code:
<?php bfa_thumb( width, height, true, '', '' ); ?>
where you put in your values for width and height
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want a full width header, fixed width content and a background image tsheridan Header configuration & styling 5 Jan 29, 2013 02:46 PM
[SOLVED] Full width header with fixed width image and background color WilliamNavidson Header configuration & styling 4 Jun 10, 2011 02:13 AM
Is there a known bug with featured image captions and excerpts? singledudetravel Center area post/pages 16 May 27, 2011 02:45 PM
Featured image won't resize Pierre Excerpts, Read more, Pagination 5 Jan 31, 2011 09:13 AM


All times are GMT -6. The time now is 06:45 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.