Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: wp_nav_menu not showing menus on homepage of themeHi,
If it shows on all other web pages then there must be code in header.php or a style in style.css to hide it on the home page.Do you only have support for one menu Admin > Appearance > Menus, do you have a different Template Location for home and then default for the rest.
This parameter ‘fallback_cb’ => ” tells WordPress not to show the page menu, only show a Menu if it has been created and set as the menu in the Menu > Template Location > Primary
fallback_cb=falseSo it could be any one of these scenarios.
HTH
David
You would set the branding image width as fixed, untested but something like.
#branding img { min-width: 960px; }Hide it on smaller devices.
/* = Small Device Support -------------------------------------------------------------- */ @media handheld, only screen and (max-width: 767px) { #branding img { display: none; } }Resize your browser window to less than 767px and the header should dissapear!
You could build in a second mobile header image into the theme and switch between the two, hide it in the main css and show it in the mobile style so a main and a responsive mobile header.
HTH
David
You should be using a child theme for your changes!!!
twenty eleven is a responsive theme, it will dynamically re-size for smaller browsers!
You will have to make it non-responsive, this is not-tested.
#primary { float: left; margin: 0 -26.4% 0 0 !important; min-width: 790px !important; min-height: 900px !important; overflow: hidden; }Also
#content { margin: 0 34% 0 7.6% !important; width: 58.4% !important; }HTH
David
Forum: Themes and Templates
In reply to: Creating a page that looks like category.php (Template)Try!
<?php $args = array( 'posts_per_page' => 10, 'cat' => 5, 'paged' => $paged ); ?> <?php query_posts( $args ); ?>No Pagination to get all posts in the category change 10 to:
'posts_per_page' => -1,HTH
David
Hi Tdmac,
If your theme is based on twenty eleven or a recent theme then it will be responsive and the iamges and theme are designed for large and small devices, make your browser like a mobile phone and see the parts stack on top of each other!If you have more questions create a new topic!
HTH
David
Another couple of considerations,
You may want to use min-height so if the content is bigger it will not break the layout.
#primary { min-height: XXXpx; }Or hide the overflow!
#primary { height: XXXpx; overflow: hidden; }HTH
David
Forum: Themes and Templates
In reply to: Elegant themes tim thumb version not working on cloud hostingSome ISP are not supporting TimThumb and blocking it, due to the recent security issue.
This one might be a WordPress settings issue rather than a premium theme one, could be as simple as Settings > Permalinks and just pressing ‘Save’ to rebuild the links!
HTH
David
Forum: Themes and Templates
In reply to: How to get size of thumbnail?Hi Webmystry,
I just had a look at the WordPress default ‘thumbnail’ creation 150px * 150px, and WordPress crops the longest side in ratio to the other, eg: portrait crops top and bottom, landscape left and right.As the default has no option and will ‘hard crops’ the thumbnail it is always going to be 150px * 150px, or whatever is set?
That was where my confusion was, as it looks like yours is a custom_image_size, not the default ‘thumbnail’ function, and not the standard WordPress thumbnail set in the Admin > Media settings.
add_image_size( 'my-thumbnail', $width, $height, $crop );Regards
David
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesI am in the UK, so the Cookies may not travel well!
David
Forum: Fixing WordPress
In reply to: Every picture I upload saves as a post?The status in wp-post for post images (attachments) inside all types of posts, is set with a status of ‘inheirit’ only the post, custom post, or page is set as ‘draft’, one other for the post created is a ‘revision’
Could it be a plugin or the theme that is causing it, swap the theme first and upload a post image, see if it still happens, if it does then disabling the plugins one at a time, is the only way.
You could also update (overwrite) your core WordPress files from the updates page, without loosing any content.
Overview for other readers:
The WordPress part of your website runs on just 11 tables, using integer values to link all the bits together.The main tables wp-post and wp-metadata, wp-options tables in the database are used to store more than just the posts.
The wp-post table has a field column of ‘type’, some of the types, post, page, revision, attachment, nav menu item, custom post type, custom header etc:, then the ‘type’ and status of ‘draft’ is used to filter wp-posts records.
HTH
David
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesOk.
Save the two pastebins as I named them, don’t change anything the page-category.php, requires the template part to be called content-title.php nothing else.Then create a page with the same slug as your category, page slug can be viewed [Screen Options] > Slug[x], then make sure the page slug = category slug
That is it it will work as it “says on the tin”!
HTH
David
Forum: Themes and Templates
In reply to: get_template_part inserts "quotes" in my themeIt’s a learning curve!
Can you mark this topic as resolved please.
David
Forum: Themes and Templates
In reply to: get_template_part inserts "quotes" in my themeGet_template_part($slug,$name);
The {slug} relates to a template file, the {name} relate to a custom template file.
So look at an example from category.php
<?php get_template_part('content','category'); ?>It is looking for a file content-category.php, if it cannot find the file then it will fall through to just content.php
If we create a custom loop for our template page, lets call it content-custom.php
<?php get_template_part('content','custom'); ?>Lets say we are adding a social.php a social media bar to our theme
<?php get_template_part('social'); ?>However we want one in the header and a different layout in the footer, we have social-header.php and social-footer.php we call these:
<?php get_template_part('social','header'); ?> <?php get_template_part('social','footer'); ?>Conclusion:
You are not passing a file name in so “” is returned.HTH
David
Forum: Fixing WordPress
In reply to: Inheriting Page Parents Thumbnail@alchymyth,
I was very close for untested code!@rellston
Could you mark this topic as resolved please!David π
Forum: Themes and Templates
In reply to: How to get size of thumbnail?since there is more than one possible thumbnail size
Not sure what you mean by that, more than one?
Or why you would need the height?
When the thumbnail is created it will always size to the width, so your height style can be set as height: auto; ?
Have a look at the Codex get_intermediate_image_sizes()
This will return an array of all image sizes!
HTH
David