Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Major problems with a theme used for clientIE = Internet Explorer
The photo slider worked the first time I visted but not the second.The validator is not getting past 4 errors and giving up, somenthing between the <head></head> tags, so it does looks like something in the head section, looking I would start with de-activating the ecommerce plugin, and revalidate until you fix the validation.
HTH
David
In Firefox this stylesheet is not importing,
@import url("http://solarallianceofamerica.com/css/general.css");Try up five levels to the root/blog/wp-content/themes/twentyeleven/:
@import url("../../../../../css/general.css");Alternative:
copy the general.css to the child theme, it will be much more easier to adjust and edit from the child themes folder.Remove:
@import url("http://solarallianceofamerica.com/css/general.css");UNTESTED CODE:
In the child themes functions.php add:add_action( 'after_setup_theme', 'child_theme_setup' ); if ( !function_exists( 'child_theme_setup' ) ): function child_theme_setup() { if ( !function_exists( 'enqueue_general_style' ) ): function enqueue_general_style() { wp_enqueue_style( 'general_style', get_stylesheet_directory_uri() . '/general.css', array(), null ); do_action( 'enqueue_general_style', 'general_style' ); } add_action( 'wp_enqueue_scripts', 'enqueue_general_style', 11 ); endif; } endif;HTH
David
Forum: Themes and Templates
In reply to: Major problems with a theme used for clientCheck to see if you have the latest version, on the preview there is a different gallery slider than your website, so there might be an updated theme.
The side slider is working in IE, until you click an image, so you might have to update the permalinks, the photo page worked fine for me IE9 but not in IE7
David
Forum: Themes and Templates
In reply to: Set default color scheme & layout 2011Have a look in the twenty eleven /inc/theme-options.php
There is a function there ‘twentyeleven_get_default_theme_options()’
It is not pluggable, so create a function in the child theme, run an action after_setup_theme.
This is UNTESTED:
add_action( 'after_setup_theme', 'child_get_default_theme_options' ); function child_get_default_theme_options() { $default_theme_options = array( 'color_scheme' => 'orange', 'link_color' => twentyeleven_get_default_link_color( 'light' ), 'theme_layout' => 'narrow-content-left-sidebar', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'sidebar-content'; return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options ); }HTH
David
Forum: Themes and Templates
In reply to: Twenty Eleven – Remove "Posted by …"The code is fine and should work.
Try this:
Remove the last ?> and leave the php tag open!HTH
David
Forum: Themes and Templates
In reply to: twenty eleven nav menu removalIf you may want to use the menu later, through Admin > Appearance > Menu, you can just disable the munu unless the Primary “Template Location” location is set.
Create the child theme and copy header.php across to the child themes folder.
Find:
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>Add an empty ” callback_cb instead of the default which is ‘pages’
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => '' ) ); ?>HTH
David
Forum: Themes and Templates
In reply to: Changing header code in functions.phpHi,
I had the wrong arguments for removing the filter (singular), not filters (plural) like I had it in paste one.remove_filters( 'brunelleschi_header_image_height');Should have been, in paste link two!
remove_filter( 'brunelleschi_header_image_height', 198);This is now Tested Code, I downloaded the theme and created a child theme, and it works fine!
HTH
David
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksI really should read the titles twice I missed the ‘wp_list_bookmarks’
As alchymyth said, except the first line is missing a not !
if not get the links the some text<?php if( ! wp_list_bookmarks('category=whatever&echo=0') ) : ?> some textDavid
Forum: Themes and Templates
In reply to: Elegant themes tim thumb version not working on cloud hostingYou could post the script up on http://pastebin.com you might get some more answers!
David
Forum: Fixing WordPress
In reply to: if empty check on wp_list_bookmarksHi,
If you are returning the link or links in an array(‘url’,’title’) from a custom function ‘get_my_links’, in a template page:<?php $links = get_my_links($category); ?> <?php if($links) : ?> <?php foreach $links as $link : ?> <li><a href="<?php echo $link[0]"; title="<?php echo $link[1]; "><?php echo $link[1]; ?></a></li> <?php endforeach; ?> <?php else: ?> 'Sorry no links for this category!' <?php endif; ?>Alternative returned from a function in functions.php
function get_cat_links( $category ) { $links = get_my_links($category); if($links) { foreach $links as $link { echo '<li><a href="' .$link[0] .'" title="' .$link[1] .'">' .$link[1] .'></a></li>'; } } else { echo 'Sorry no links for this category!'; } }Called in the template:
<?php get_cat_links('the_category'); ?>HTH
David
Forum: Themes and Templates
In reply to: Changing header code in functions.phpHi, two things,
The child themes functions.php is run first before the parents functions.php, and you need to remove and reset the filter.
I hacked this together from one of my a twenty eleven child themes, it is NOT Tested so be careful.
If you change anything update and revise the pastebin for others that might read this topic.
There is an after setup theme function
add_action( 'after_setup_theme', 'child_theme_setup' );This should:
Remove and reset the filter.
Remove the existing header images as they are not tall enough
Set a new default header from the child themes /images/ folderHTH
David
Forum: Themes and Templates
In reply to: Elegant themes tim thumb version not working on cloud hostingJust done a quick search and found this topic, it is 3 years old though:
At the end of the instructions it says “If you have problems with missing images that you’ve uploaded, you need to change the path to the images on every post directly on your SQL database.”
HTH
David
Forum: Themes and Templates
In reply to: Elegant themes tim thumb version not working on cloud hostingI have see and answered this before where there is an extra slash or slash is missing from the website url, or there is no http://
Check the Settings > General > WordPress Address (URL) and Site Address (URL)
These should be in the format http:// siteaddress .extention, with no trailing slash
Like
http://asasigns.com.auYou have a strange
www//before the ‘/wp-content` so it looks like a setup issue!HTH
David
Forum: Themes and Templates
In reply to: Creating a page that looks like category.php (Template)Hi,
I see you have it sorted.What does the that code do?
What you was missing was the navigation, all we done was told WordPress we wanted the query results to be paged, using the WordPress global $paged.
'paged' => $pagedThe other line just tells WordPress how many posts to show, the default (10) is set in settings, but we could over-write that and display more or less, if we have large posts we may only want two so the visitor does not have to scroll.
So we would add:
'posts_per_page' => 2,Guessing it replaces the <?php query_posts(“cat=#”); ?> in the templete?
That is correct, all we have done is created an argument array and passed it to query_posts( $args ), it is a matter of choice, I just thing the array is easier to read, construct and understand, than a long text string.
As we can see it can get messy, although for this example below we should use wp_query();
<?php query_posts( 'cat=5&posts_per_page=10&paged=$paged&order=ASC&orderby=title' ); ?>If your topic is resolved can you change the status of the topic please.
HTH
David
Forum: Themes and Templates
In reply to: Problem in Single Post ContentWell off Topic:
The post on the daguerreotype, should that not be 1838 you have 1938 in the title.
I did own one taken in London or Liverpool around 1845 copper plate amd silver!
David