Forum Replies Created
-
AuthorPosts
-
February 14, 2017 at 9:47 am in reply to: Digital Pro Help with Journal Featured Image Aspect Ratio #201138eluviisMember
It's too bad this forum is not what it used to be. It's like, you either code it yourself or hire someone that can. I do respect that approach though. So I guess that's OK. But, it used to be the staff was more involved here. I'll hire someone that can figure this out.
February 8, 2017 at 9:19 am in reply to: Digital Pro Help with Journal Featured Image Aspect Ratio #200781eluviisMemberHi Victor, thanks for chiming in. I know that though. That's not it. I'm not looking at old posts. I'm creating new test posts and adding new images that get crunched AFTER editing the new image size. The new image size does appear in the uploads folder, but it will still render the largest image in the Journal archives instead of the new size I created. In other words, it will only load the default 1000 x 700pm child them image size unless I make a change to functions.php to create a different size, then it will only load the largest image instead of the new image size.
eluviisMemberI kept searching and searching and came upon some code in the WordPress CODEX and used it to modify the code I had. And it works:
/** Custom - Add the featured image section */ add_action( 'genesis_before_entry_content', 'genesis_featured_image' ); function genesis_featured_image() { if ( is_singular( array( 'post', 'page', 'specialty', 'event', 'portfolio' ) ) && has_post_thumbnail() ){ echo '<div id="featured-image">'; echo get_the_post_thumbnail($thumbnail->ID, 'medium', array( 'class' => 'aligncenter' )); echo '</div>'; } }
Basically, the trick was to replace the ID "header" with the ID "medium". Now it displays my medium image size.
Interestingly, like with all my post images inside posts, even when you display the medium image, opening the image in a new window or downloading it, yields the full size image. Not sure why it does that. Maybe this is a new feature in WordPress? Or more recent for that matter. Can anyone elaborate?
February 4, 2017 at 12:39 pm in reply to: How do I resize images without using Regenerate Thumbnails? #200568eluviisMemberIs 730 the size of your largest image? If that's the case, I don't think you can. At least not effectively. I'm sure you could use CSS to make the image display at 750px, but it's going to show a bit more pixelarization.
February 3, 2017 at 3:32 pm in reply to: Image Code is Correct But Still Rendering Images at Full Size #200528eluviisMemberAnyone?
eluviisMemberActually, my last post was probably a little confusing. Let me clear that up. I decided to go with Digital Pro instead for several reasons. So no need to for me to change the fonts.
eluviisMemberThanks Victor. I'll give it a shot. Buying Digital Pro now...
eluviisMemberOne more thing... I know Infinity is newer.... but when it all comes down to it, which is really better? Infinity or Digital Pro?
Yes, I know I can manipulate it all I want, but out of the box, codewise and features. Which is better?
eluviisMember@Christoph - That portfolio plugin is actually really good. I like how it works and I like how it includes the CSS I need to make it look more or less how I want. Hard-coding it in the way I usually do it won't give me this kind of depth as I usually do it much more simpler.
One question though. You think there is way I can change "portfolio" to "gallery" in the plugin without hacking the plugin? I don't want it to revert back to portfolio during the next update. Otherwise, really good.
eluviisMember^^^ Thanks. That plugin might be very useful. I got the CPT working great now thanks to you. However, the old CSS code I used to use doesn't play nice with the theme I'm using now. Maybe this plugin will give me CSS code I can use. Apart from that, I can't have the portfolio named "portfolio" - needs to be gallery, so I've changed all the names with search and replace.
eluviisMemberEDIT: Nevermind. That seems to have done the trick. It's working now.
Quick question. That code that I posted above is based off the original Minimum theme, ie, not HTML5. The new Minimum Pro them (HTML5) uses templates for the portfolio custom post type. Am I asking for trouble here, or is the code above perfectly legitimate?
eluviisMemberHi, thanks, but that doesn't really help. See, all that with_front' => false does is that the posts themselves do not get the "portfolio" slug prepended. But my problem is that I'm getting the "blog" slug prepended before "portfolio" because it's in the permalink settings to add that to the blog. But I don't want that to affect my custom post types such as this one.
eluviisMemberBasically, I don't want "/blog/" prepended to the post name on my portfolio CPT like it is on the blog. How do I edit the code above to avoid that?
eluviisMemberBy the way, I just inspected a Themedy theme for Genesis that has the ads widget, with Firebug. It looks like the code is just standard HTML with CSS formatting. Am I right? Essentially this means that having 4 ads like this per page, on a site with 400 pages, you'd have 1,600 links out.
What do you guys think? Is this OK? Should these maybe be Javascript instead? See the image:
eluviisMemberAnyone? :/
eluviisMemberI wonder if I'm better off just copying that first portfolio code and changing the portfolio name for each of my other custom post types and turning off the plugin. I wonder if things won't break.
eluviisMemberThis is the code the plugin is inserting. Now, why does the byline not show? And while I'm at it... Why don't do the post tags work with the custom post type? One of the bottom widgets doesn't work either.
// registration code for quickblog post type function register_quickblog_posttype() { $labels = array( 'name' => _x( 'Quickblog', 'post type general name' ), 'singular_name' => _x( 'Quickblog', 'post type singular name' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Quickblog' ), 'edit_item' => __( 'Quickblog' ), 'new_item' => __( 'Quickblog' ), 'view_item' => __( 'Quickblog' ), 'search_items' => __( 'Quickblog' ), 'not_found' => __( 'Quickblog' ), 'not_found_in_trash'=> __( 'Quickblog' ), 'parent_item_colon' => __( '' ), 'menu_name' => __( 'Quickblog' ) ); $taxonomies = array('post_tag'); $supports = array('title','editor','author','thumbnail','excerpt','custom-fields','revisions','post-formats'); $post_type_args = array( 'labels' => $labels, 'singular_label' => __('Quickblog'), 'public' => true, 'show_ui' => true, 'publicly_queryable'=> true, 'query_var' => true, 'exclude_from_search'=> false, 'show_in_nav_menus' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'rewrite' => array('slug' => 'quickblog', 'with_front' => false ), 'supports' => $supports, 'menu_position' => 6, 'menu_icon' => 'http://rallyways.com/wp-content/uploads/extra_images/quickblog_icon.png', 'taxonomies' => $taxonomies ); register_post_type('quickblog',$post_type_args); } add_action('init', 'register_quickblog_posttype');
eluviisMemberI think I might have found the problem, but I don't know how to fix it. I noticed that in my portfolio custom post type, the author byline does work. But my portfolio CPT was code I pulled from an old Minimum site I had and I pasted the code into the Magazine-Pro functions.php
This is the code:
/** Custom - Create portfolio custom post type */ add_action( 'init', 'minimum_portfolio_post_type' ); function minimum_portfolio_post_type() { register_post_type( 'portfolio', array( 'labels' => array( 'name' => __( 'Portfolio', 'minimum' ), 'singular_name' => __( 'Portfolio', 'minimum' ), ), 'exclude_from_search' => false, 'has_archive' => true, 'hierarchical' => true, 'menu_icon' => 'dashicons-admin-page', 'public' => true, 'rewrite' => array( 'slug' => 'portfolio' ), 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo', 'genesis-cpt-archives-settings' ), ) ); }
Now, my other CPTs are made with a plugin. I have genesis-seo, genesis-cpt-archive-settings, and page-attributes activated. But... I don't know how to activate the author byline.
eluviisMemberI ended up using the plugin - Easy Custom Sidebars and that did the trick. I was able to replace the header-right sidebar in every page but the homepage.
Cheers
eluviisMemberBy the way... this is the site: http://andrewsaintandrew.com - I just want the header right menu (header right widget) to ONLY show on the homepage. That's all.
-
AuthorPosts