Distiple
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?Hmmmm… I dont even remember anymore. It may have been that the import function simply didnt work.
Using the same logic i used to solve a different issue, i suspect the code i have to alter is in this section, in my loop.php file:
<?php
$images = get_children( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘numberposts’ => 999 ) );
if ( $images ) :
$total_images = count( $images );
$image = array_shift( $images );
$image_img_tag = wp_get_attachment_image( $image->ID, ‘thumbnail’ );
?>
<div class=”gallery-thumb”>
“><?php echo $image_img_tag; ?>
</div><!– .gallery-thumb –>
<p><?php printf( _n( ‘This gallery contains %2$s photo.’, ‘This gallery contains %2$s photos.’, $total_images, ‘twentyten’ ),
‘href=”‘ . get_permalink() . ‘” title=”‘ . esc_attr( sprintf( __( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ) ) . ‘” rel=”bookmark”‘,
number_format_i18n( $total_images )
); ?></p>
<?php endif; ?>Does that make any sense? Do you know what needs to be added to align the thumbnail images?
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?I actually read somewhere that using the import command will increase load time, and there is no real drawback to copying the entire css. Would love to hear other opinions.
I’m not sure what you mean by go back to what i have. I am currently using a test child theme to make changes, and when they work i copy the new code into the current theme. What I have up there now is my most updated working code.
Forum: Fixing WordPress
In reply to: Which code is right for me?My site is https://www.wordsandmusic.com.
I was finally able to achieve removing the meta data, by removing the code related to the entry utility in my loop.php file, something which i had not seen suggested anywhere.
But I would still love to understand, for future reference why previous, much simpler solutions, didnt work for me.
I am currently also struggling with aligning the excerpt images to the right of the text, as i described here: https://www.ads-software.com/support/topic/how-do-i-align-excerpt-images-on-homepage?replies=11
For this as well, I have attempted many solutions, including the one mentioned in the thread, but to no avail.
Forum: Fixing WordPress
In reply to: Which code is right for me?Thanks Christine. I am currently working on a child theme for twentyten theme. For example, I am now trying to hide the category and tag meta data from the homepage, where i am using excerpts.
This solution from only 3 months ago seemed to do the trick for the OP, but not for me: https://www.ads-software.com/support/topic/how-to-only-remove-posted-by-in-the-twenty-ten-theme?replies=9
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?Since im getting this code from a different source than the code for the excerpts, perhaps custom_thumb is not the universal term I expect it to be.
How can i verify that it is calling the correct function? For the excerpts, im using the information on this page:
https://wpshed.com/wordpress-how-to-add-post-thumbnails-next-to-post-excerpt/
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?I must still be doing something wrong, as im not seeing any change.
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?Great. Just to be perfectly sure, where exactly should I be pasting this in the css file (it should be there, right?)
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?Removed, thanks.
I’ve switched to my test child theme so you can take a look. As you can see the thumbnail images are displayed above the text, while I would like it to be displayed to the right of it:
Forum: Fixing WordPress
In reply to: How do I align excerpt images on homepage?Thanks, but I dont have a reference to thumbnails in page.php.
I should probably mention that Im using the twentyten theme. Are you perhaps using the same thing?
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentSo I managed to get around this by creating a new child theme folder and using the same files from the previous child. I would love to know what the issue was as this makes no sense to me, but at least its working now.
Should I mark this as resolved?
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentWeird, i actually ran it just for the child themes css:
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentThe css validator actually found no errors
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentI ran my current css file with original css file i just downloaded with this useful little tool: https://www.comparemyfiles.com/
and it found that both files are the same.I’ve also copied my header.php and single.php files, to which i believe i have made changes to, to my new folder.
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentAlso, if I did make changes, wouldnt copying the code from the parent themes css file to the new file (as i originally tried before using the import function) copy any changes as well?
Forum: Themes and Templates
In reply to: Child theme looks nothing like parentWhat do you mean in an older version?
I have updated wordpress a couple of times since I started the website.