Forum Replies Created
-
AuthorPosts
-
August 14, 2017 at 1:20 pm in reply to: Custom Featured Image – Move Image to Left of Title in Archive Page #210352signatureddMember
Yes, it did, sorry! I had to remove the clear from the article tag.
August 13, 2017 at 10:02 am in reply to: Custom Featured Image – Move Image to Left of Title in Archive Page #210323signatureddMemberThat didn't work.
signatureddMemberI have upgraded to HTML5. Thank you. Went fairly smooth. I have addressed the original issue with the code here. It works great, but I would like to move the image to the left of the title. Normally, we can do that with this:
// Move post title to the right of the image
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_header', 'genesis_do_post_image', 5 );What is my best way to make this happen now?
signatureddMemberThank you. Just so I can be sure I am doing this right. I just change genesis_post_title to genesis_entry_header ?
// Add offsite icon to newsroom title links
add_action('genesis_post_title','offsite_icon');
function offsite_icon() {
stuff here;
}signatureddMemberOk, I will give it a whirl tonight. Converting the CSS seemed easy, if the tool worked properly. What about hooks that I might have to change? I assume a few were not compatible when moving over. Are there a list of old XHTML hooks that need to be changed?
signatureddMemberIsn't there any way to address the changes I originally requested without going through this yet?
I would like to convert to HTML5, but this is a major task on a very custom theme. We can't just easily switch to a new theme. This is going to take some time and I need to fix the issue related above immediately.
signatureddMemberI see there is code here to convert to HTML5. I am assuming it is not going to be as easy as pasting one line of code into functions.php. I assume things will break. What am I looking at in terms of backwards compatibility?
signatureddMemberhttp://www.cdcgamingreports.com/gaming-tv/
Would love to upgrade at some point. Site is quite involved. Need to research more on it.
signatureddMemberI don't believe my theme is HTML5. I can't get either the remove_action or add_action below to work. Are there different hooks for non HTML5?
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_before_entry', 'featured_image_no_https', 12 );signatureddMemberOk, yes, I am using a custom archive page template, but I don't know how to remove the default featured image and replace it with a new one. Is there an example that I could see?
signatureddMemberhttps://gist.github.com/jillmaturino/8a5240785bb77988d3c654696fc1189b
I figured it out. Here is what I did for anyone else with the issue.
signatureddMemberSorry, the code didn't come out right above. Here it is:
<?php while( $loop->have_posts() ): $loop->the_post(); $relative_permalink = force_relative_url (get_permalink ($post->ID)); $permalinks="http://cdcgamingreports.com".$relative_permalink; ?> <li><a>"><?php the_title(); ?></a></li> <?php endwhile; ?>
-
AuthorPosts