Forum Replies Created
-
AuthorPosts
-
pxfortiParticipant
Sorry about that.
You need to add this above the code:
add_action('genesis_before', 'move_post_title');
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantYou need to wrap you code in a wordpress conditional; eg
function move_post_title() {
if ( !is_single() ) //if not a single post, do nothing
return;
// your code here
}
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantThanks Victor. You were correct. It was an extension called Measureit.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantOk. I get it now. The header image is all there is. Some templates replace site title and description with an image. Yours creates a background image. In either case they the the header function in the customizer
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantfirst, go to settings > permalinks and click save. If that doesn't fix it, then see if you previous template had a plugin or code that created a shortcode for permalinks. By default, wordpress does not write permalinks with square brakets [ ] around them.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantI don't think it's cutting off images. Your images sizes are set to hard crop image. That means it crops them to the exact dimensions of the defined image size. You can go into media settings and turn that off for thumbnails.
For metro's custom images, you can turn if off in functions.php; where is says true, change to false.
The problem with doing this is your images will possibly have different heights. The other alternative it to crop the images to the same dimensions before you upload them.
Also, if you do change hard crop to false, you'll have to regenerate your thumbnails. Search wordpress plugins directory for regenerate thumbnail plugin.
add_image_size( 'home-bottom', 150, 150, TRUE ); add_image_size( 'home-middle', 332, 190, TRUE ); add_image_size( 'home-top', 700, 400, TRUE );
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantfor header image, go to Appearance > Header Image > Add New Image
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantin the responsive menu plugin, you need to use
.nav-primary
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantHi,
That's a very outdated tutorial.
You should not have to add any code to get the header image. Just go to customizer and add it. As far as the link, in this template, the header image is background and the site title and description still show.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantopen /wp-content/themes/your-theme/functions.php and find this code:
add_theme_support( 'custom-header', array(
You can adjust the featured image size there. You will have to upload the image again.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantI just tested this on wp 4.2.2 and the remove background works. Maybe you modified your functions.php?
The easiest way to get a mobile menu is to use a plugin. I have used this one with success using genesis templates:
Note: with the plugin, you have to tell it which nav div to hide on mobile: the div is nav-primary
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantHi,
I think there's an easier way to do it and still use the genisis blog features and settings.
The trick is to find out how your blog content is being displayed. I used if( is_archive) but you might have to use a different conditional.
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); // removed default genesis featured/post image code add_action( 'genesis_before_entry_content', 'featured_post_image' ); add your custom featured post image code function featured_post_image() { if (is_archive( )) { ?> <div class="archive_thumb alignleft"> <?php the_post_thumbnail('thumbnail'); //you can use thumbnail, medium, large or a custom size ?> </div> <?php } }
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantNever heard of using anything other than functions.php. Unless you use an include in functions.php there is no way for WordPress to know about that file. When you see the update message from studeopress its for the parent not child template.
writeNowDesign
WordPress and Ecommerce Website DesignJuly 6, 2015 at 6:20 pm in reply to: How to add numeric archive pagination to single post pages #158591pxfortiParticipantWhy do you show only one post on the blog page? You're right, the user has to do a lot of clicking to see what's there. Seems like it would be more user friendly to show 5 or 10 posts per page with the numeric paging system and then maybe use the previous /next code for single posts.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantI tried this on the same template and it works. That's with a page specified as home page. The only problem is that it also shows the header on the specified home page (in your case about page).
One way around this would be to use the Home Page Top widget area to past the about us content. Or, use a unique page as the home page.
writeNowDesign
WordPress and Ecommerce Website DesignJuly 6, 2015 at 3:12 pm in reply to: How to add numeric archive pagination to single post pages #158552pxfortiParticipantThe numeric nav doesn't make sense for single posts. You'd want to use Previous / Next for previous next post.
For formatting of previous next, see this page: https://codex.wordpress.org/Next_and_Previous_Links
To add previous next to single posts, add the following code to the end of your functions.php file:
add_action( 'genesis_after_comments', 'genesis_prev_next_post_nav', 2 );
Note: to change the location of the prev/next links, change the action hook; eg, code above adds to genesis_after_comments.
See the following url for other genesis hooks: http://my.studiopress.com/docs/hook-reference/
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantAdd the following code to the end off your functions.php page.
Note: If that doesn't work as expected, try replacing is_front_page with is_homefunction wnd_add_genesis_header() { if (!is_front_page()) { //* Remove site header elements remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); } } add_action( 'genesis_before', 'wnd_add_genesis_header' );
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantCan't see the image for the results you want. do you have a url. Also, do you have a url for your live site?
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantFirst, if you are not pretty comfortable with php and css, this is not a trivial change.
If you change the header image size, you'll have to change the css rules associated with it and change the functions.php code:
Below is the code for the header image. You'd have to change the width and height to match your image.//* Add support for custom header
add_theme_support( 'custom-header', array(
'header_image' => '',
'header-selector' => '.site-title a',
'header-text' => false,
'height' => 110,
'width' => 320,
) );If the image is NOT the header image you add through the wordpress Header Customizer, then the images are set in stylesheet to be 100% max of their container. That means if the container shrinks, as in smaller devices, the image automatically shrinks with it.
writeNowDesign
WordPress and Ecommerce Website DesignpxfortiParticipantYou're starting to get into css code. If you don't know how to write it, this will be difficult because once you start changing one element (the site title or description), you'll have to adjust other css rules for logo. That's because the template is designed to either show a logo and no site title and description or the exact opposite.
The easiest thing is to design your logo with the text IN the logo. then you won't have to do anything to the css
writeNowDesign
WordPress and Ecommerce Website Design -
AuthorPosts