Digital Raindrops
Forum Replies Created
-
Forum: Themes and Templates
In reply to: columns on a pageIf you are doing it in the post content then as you add the the images, select the images and justify them left on the toolbar.
If you wanted to style them more then switch to the html view.
Then there is the really easy method, create a single image with all three images pasted and spaced in place!
HTH
David
Forum: Themes and Templates
In reply to: Problem With My Featured ImageIt would replace the script you posted above, if you are not sure, as you have a premium ‘paid theme’ you should really get support from the themes vendor, or use a service like people per hour where someone will bid and do the change for a small amount of $$.
This forum is for un-paid products that are released under the GPL licence.
Regards
David
Forum: Themes and Templates
In reply to: Problem With My Featured ImageTo display the image in a loop!
<?php if( has_post_thumbnail() ) :?> <div class="imageholder"> <?php ( get_post_thumbnail() ) :?> </div> <?php endif; ?>Options:
<?php ( get_post_thumbnail( array(250,250) ) ) :?> <?php ( get_post_thumbnail( 'thumbnail' ) ) :?> <?php ( get_post_thumbnail( 'medium' ) ) :?> <?php ( get_post_thumbnail( 'large' ) ) :?> <?php ( get_post_thumbnail( 'post-thumbnail' ) ) :?>HTH
David
Forum: Themes and Templates
In reply to: Child Theme Header.phpAll I want to do is prevent readers from right clicking and copying images, being a professional photographer it is imperative to protect my images. I want to do so in a way that means I don’t have to keep on changing code every time I upgrade the Theme version.
I have been there before, but how do you prevent them from
- “Print Screen” and paste into paint
- screen grab products like Snagit,
- “file save page as”
- website download software will download the images
- the Snipping Tool?
- view page source and get the image link
Would it stop the FireFox AddOns:
Image Toolbar
Image Download
Would it stop Harvesting Software.Look at all the ‘stock image websites’ if there was a way to stop someone making a copy they would have used it.
You would also need to consider accessibility and disability options where the right mouse key could be mapped to a different action.
The only viable universal way I found was to create and upload a composite image, a low resolution minimum sized image and added a watermark.
Most graphic packages will have a batch action for this, accept that this is the internet, if it is there it will get copied one way or another!
The time I spent trying to prevent a right click could have been much better spent on my creative photography, after a lot of testing it was only adding a watermark that worked, accepting that the watermarked image could be downloaded and cropped.
TinEye is constantly crawling the web and updating our image database regularly. We also accept direct contributions of complete online image collections. To date, TinEye has indexed 2,163,266,343 images from the web. We add tens of millions of new images to TinEye every month, and our index is on the grow.
If someone likes your little image and downloaded it for personal use then is it a big issue, for image abuse there is also Tineye that might find your images if they are used on the web, this is what some of the big stock website use to find where an image is used.
HTH
David
You have the image in the id #site-title so to make it fluid use max-width rather than fixed widths, heights should be aute, as the image resizes so will the height proportionally:
#site-title { height: auto; max-width: 278px; }For a fluid solution:
hgroup { max-height: 140px; max-width: 590px; }HTH
David
Forum: Fixing WordPress
In reply to: How to get user to register or loginNo problem,
Can you mark this topic as resolved please.David
Forum: Fixing WordPress
In reply to: How to get user to register or loginOk I see try wp_login_form() and wp_register(), have a look at the wp_login_form argument defaults.
Note
wp_register()will only show the link if you have anyone can register set in settings, the form when logged in will return to the page!<?php if( !is_user_logged_in() ): ?> <!-- Login Form for new or not logged in users --> <?php wp_login_form(); ?> Not registered then <?php wp_register( '','' ); ?> here! <?php else: ?> <!-- Normal template code for logged in users --> <?php endif; ?>HTH
David
Forum: Themes and Templates
In reply to: Header issues on mobile site using Twenty ElevenHi,
You will need to create a child theme for your changes, but this can be done in the stylesheets.This post has a child theme and might give you an insight and a starting point, on how to do what you want.
HTH
David
Forum: Fixing WordPress
In reply to: How to get user to register or loginJust change the code that comes up if there are no posts, and add your condition to ‘the loop’, the have_posts() call, no need for the ‘wp_die’.
Like this untested code which has a link to the login page, the login dialog has the ‘register here’ link there already!
If the user is not ‘logged in’ they do not see the content and get the custom message, if the user is ‘logged in’ they get the second message if there is no content!
<?php if ( is_user_logged_in() && have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <!-- Post Output --> <?php endwhile; ?> <?php else : ?> <?php if ( !is_user_logged_in() ) : ?> <p><?php _e( 'You must be logged in to view this page. <a href="http://mysite.com/login">Login Page</a>', 'namespace' ); ?></p> <?php else : ?> <p><?php _e( 'Apologies, but no results were found', 'namespace' ); ?></p> <?php endif; ?> <?php endif; ?>HTH
David
Forum: Fixing WordPress
In reply to: Removing a widget from the sidebarYou will find the widgets are loaded by code in the sidebar.php file, so you can remove or add a new default widget in the file.
You should create a child theme add the sidebar file and edit the code.
HTH
David
Forum: Themes and Templates
In reply to: Display Post Excerpts Only On Category, Tags, Search PagesFirst we hope you mean a twenty eleven child theme, if not them move your changes to a child theme before twenty eleven is updated and you lose your changes?
The content by default is displayed with content.php, but we can over-ride this by changing the call to
get_template_part($slug,$name)Copy content.php to the child theme and rename this, content-archive.php, add code for the thumbnails
Copy archive.php to the child theme, open the file find and change to
get_template_part( 'content','archive' )If you are not sure about doing this and you need an example child theme with the archive.php already changed, with a couple of other different layouts for category and search then this may help, download the working child theme and look at the code!
HTH
David
Forum: Themes and Templates
In reply to: Twenty Eleven Header Image using is_category@david, do you do this on any site and which method do you use? What site(s)?
My website is meant as a learning tool, I only write posts and create child themes when I think something might be of use to a few others.
I do not get to use much of the code myself as I do not create themes for others, most posts and themes are created after reading posts on this forum.
Please make sure it is: Twenty Eleven Header Image using is_category …
Most of the posts on my website have a download, the downloads on all three linked posts are twenty eleven child themes, and the files include category.php, header.php, functions.php, where the changes are called.
The idea is that you have a fully working child theme example to test and all the code you need to merge with your own theme.
Polite Observation:
Looking at your website you have your themes folder as ‘wp-content/themes/twentyeleven/’, if you have modified any files then you may lose the changes.Later this week there is a scheduled new WordPress release with a new twenty eleven theme, if you update the twenty eleven theme, your themes folder files will be replaced.
HTH
David
Forum: Themes and Templates
In reply to: Twenty Eleven Header Image using is_categoryI have some evolving posts on ways to do this, each post has a working example downladable twenty eleven child theme to play with and copy any code from.
This one just uses the header from the first post it finds in a category, but is restrictive if you are using the featured image for lists etc:
This one you upload a header (Appearance > Headers) with the name being the category {slug}
So category slug latest-news will use an uploaded header with the image being latest-news.jpg
This one has a lot more features, category description using a custom post type, sort ASC or DESC, select different layouts for each category, and select a category header from a dropdown.
HTH
David
Forum: Themes and Templates
In reply to: Custom Author ListingI have a custom page template set up, and the first name / last name and avatar working, but the link returned isn’t the full link to the users page and there are no images from the posts being returned.
I thought it was the author posts link that was wrong, for the lmages, are you not using the Featured Image then you could use something like?
UNTESTED:
<?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute('echo=0'); ?>"> <?php the_post_thumbnail( array( 200,100 ) ); ?> </a> <?php endif; ?>HTH
David
Which font, I cannot see where you would want a white font, so a little more detail?
David