Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

feature image help


  #1  
Old Nov 12, 2015, 01:21 AM
baimac
 
6 posts · Mar 2015
Where can I learn how to show and control the appeareance and location of featured image on posts? Can I just select it like an image? I use TPG get posts, and if I put the featured image in the body of the post, and as a separate featured image, it is doubled on the lists of posts on a page showing TPG get posts.

when I added this
<?php the_post_thumbnail(medium); ?>
to index (i think that was it's name)

the image appeared in the bottom line of the breadcrumbs.

Thanks
  #2  
Old Nov 12, 2015, 05:26 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you add that code to part of the theme's code or the plugin's code?
and where exactly did you add it?

If you added it to the plugin - you should probably ask the plugin author for help...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 12, 2015, 09:40 AM
baimac
 
6 posts · Mar 2015
Rather than helping me with the pluggin, can you point me to how i can make the featured image appear in a post's webpage. That seems like a common request. When visitors are looking at the post, I would want them to see the feautred image, but I can't figure out how to make it appear. I'm reading now about "Function_Reference/the_post_thumbnail" and "The_Loop" but have no idea if i am on the right track?
  #4  
Old Nov 12, 2015, 09:46 AM
baimac
 
6 posts · Mar 2015
In the index.php, I just entered this line shortly after the comment that is already on code
/* If there are any posts: */
and just above post headline.

<?php the_post_thumbnail( $size, $attr ); ?>

It seems to do what I wanted. Now I'm trying to find out how to specify size and attr.
  #5  
Old Nov 12, 2015, 11:08 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Quote:
Rather than helping me with the pluggin, can you point me to how i can make the featured image appear in a post's webpage
Just add the image to the post with the text.

Themes treat featured images differently - Atahualpa uses the featured image in the excerpt but does not put it in the post. This way your featured image can be different from the image in teh post.

it's all a matter of choice. If the featured image automatically showed on the post page, there would be people that wouldn't want that to happen - the 40-40-10-10 rule for options - 40% of the people want it one way, 40% want it the opposite way, 10% don't care and the other 10% say 'Oh, wow! I didn't know that option existed...'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Nov 12, 2015, 11:47 AM
baimac
 
6 posts · Mar 2015


The link above is a screen shot of my website with crome developer.
I'm trying to change the image size of thumbnail from 150 to 120. Fromwhere is the 150 coming? In Atahualpa settings, I have thumbnail set to 120 width and height. When I added the image to media library originally, it is about a 400px square, and on the list of TPG get posts, I want them to appear only as 120 px.

When I look at instructions for changing thumbnail dimensions
ahttps://codex.wordpress.org/Function_Reference/set_post_thumbnail_size
it shows that I shoud edit the functions.php file. But my functions php file doesn't look like the one in the instructions.

set_post_thumbnail_size( $bfa_ata['post_thumbnail_width'], $bfa_ata['post_thumbnail_height'], true );
else set_post_thumbnail_size( $bfa_ata['post_thumbnail_width'], $bfa_ata['post_thumbnail_height'] );
add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
  #7  
Old Nov 12, 2015, 03:49 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you want to change the size of the thumbnails of images that have already been loaded, youneed to use a plugin like https://wordpress.org/plugins/regenerate-thumbnails/
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Nov 12, 2015, 06:36 PM
baimac
 
6 posts · Mar 2015
Hi again.

I've installed and run the "Regenerate Thumbnails" and images are still showing as 150px, not 120px. Because my list of posts is from TPG-get posts, I don't know if the issue is solvable by editing TPG-get-post code, or Atahualpa code.
  #9  
Old Nov 12, 2015, 07:00 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You set the size of the thumbnail/Featured image at ATO->Post THUMBNAILS
then run the regenerate thumbnails
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Nov 13, 2015, 07:55 AM
baimac
 
6 posts · Mar 2015
Thanks for the instructions. However, I don't know what this means "ATO->Post THUMBNAILS." Is that the wordpress dashboard, Dashboard > Appearance > Atahualpa Theme Options > Posts & pages > Post Thumbnails > Post Thumbnail Width (& height)?

This has been set for 120 px for weeks and crop is sta to "no".
I'm trying to figure out where the 150 px hight and width is coming from in the code visible in Chrome's developer.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature a page in a widget? tixcoca Excerpts, Read more, Pagination 7 Feb 12, 2013 06:06 AM
After customizing feature image size, hover takes place across the page? dinabrokoth Montezuma Theme 1 Jan 21, 2013 05:52 AM
Header Image Feature Request RAMilewski Header configuration & styling 3 Feb 20, 2011 05:51 PM
Feature Request georgenoise New Versions, & Updating 0 Dec 31, 2009 09:57 AM
Feature Request Suzie RSS, Feeds & Subscribing 0 Sep 14, 2009 10:12 PM


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


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