cornelisonc
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Default folderHi Magpie656,
WordPress automatically uploads media in folders with a structure of
year/month
, which is what you’re seeing here — the year is 2015, and the month is February (02). This behavior is normal and expected. You can learn more about WordPress’ upload directory here.Forum: Fixing WordPress
In reply to: Misalignment of "Share This" button: dots…Awesome! I’m glad to hear it. Would you please mark this topic as [resolved] ? Thanks!
Forum: Hacks
In reply to: conditional: redirect to a page if the user has published a postYou can put it in
functions.php
if you wrap it in a function like so:function mysite_redirect_postless_users() { if ( 0 == count_user_posts( get_current_user_id() ) ) { wp_redirect( get_permalink( '34' ) ) ; exit; } } add_action( 'template_redirect', 'mysite_redirect_postless_users' );
Also note that you will need to wrap the page ID of 34 in single quotes inside of get_permalink, but other than that, you look like you get the idea ?? Let me know how that works for you!
Forum: Fixing WordPress
In reply to: Misalignment of "Share This" button: dots…No problem! Happy to help. It looks like I was right, those dots are being generated by your stylesheet, so we’ll have to add an exception for everything in the Share This plugin’s area. If you add this at the very bottom of styles.css, it should fix your problem:
.sd-content ul li:before, .sd-content ul ul li:before, .sd-content ul ul ul li:before { content: ' '; }
What I’m doing here is remove the before: content that was being added on all of the
<ul>
elements by your stylesheets and replacing it with a blank space for alignment. Let me know how that works out for you!Forum: Hacks
In reply to: add a new class to featured imagesGreat! Could you please mark this topic as [resolved] ? Thanks!
Forum: Hacks
In reply to: conditional: redirect to a page if the user has published a postYou should be able to use some combination of count_user_posts() and wp_redirect() to achieve this functionality. Something like this:
if ( 0 == count_user_posts( get_current_user_id() ) ) { wp_redirect( get_permalink( 'destinationpostid' ) ) ; exit; }
You would need to pass the correct parameter to get_permalink() depending on where you want to redirect the users.
Forum: Fixing WordPress
In reply to: Option -> Permalink ErrorDo you have access to the server logs? If you post the specific error message from the server, I can try and help you track down the cause.
Forum: Hacks
In reply to: add a new class to featured imagesYou can target the data in the Alt Text area using CSS like so:
[alt="styledimage"] { border:1px solid #000; }
So you could put the text styledimage in the Alt Text area for the featured image the same as you would put the class you want.
Forum: Fixing WordPress
In reply to: list products by size not numeralCould you give an example of the code you are currently using to fetch the products? Thanks!
Forum: Localhost Installs
In reply to: No wordpress toolbar in localhostAre you logged in to WordPress? The toolbar won’t show up unless you are logged in. You can get to the login page by adding /wp-login.php to the root url of your WordPress instance.
Forum: Fixing WordPress
In reply to: Slideshow pictures not displaying in correct sizeGreat! Could you please mark this post as [resolved] ? Thanks!
Forum: Fixing WordPress
In reply to: Slideshow pictures not displaying in correct sizeThe images in the slider are of a .gif fileformat — is there a reason for that? If you save them out of Photoshop as a flattened .png then they shouldn’t change black. It appears that is a problem specifically with the .gif fileformat. You can see that they are still black even if you just load the image directly.
Forum: Fixing WordPress
In reply to: Slideshow pictures not displaying in correct sizeIt looks like the issue is related to the way the images are being given to nivoslider. On your Bread website, they look like this:
<img src="https://www.firebrickbread.com/wp-content/uploads/2012/04/Cranberry.gif" alt="" title="#sliderCaption1" style="display: none;">
But on your Pizza website, they look like this:
<img src="https://i2.wp.com/www.firebrickbread.com/pizza/wp-content/uploads/2015/01/Lavosh-closeup.gif?zoom=2&resize=524%2C327" alt="" title="#sliderCaption1" width="524" height="327" src-orig="https://i2.wp.com/www.firebrickbread.com/pizza/wp-content/uploads/2015/01/Lavosh-closeup.gif?resize=524%2C327" scale="2" style="display: none;">
I think it’s probably the resize and scale parameters on the image src that are causing your problem.
I looked at this post and it seems that this problem could be being caused by Jetpack. I also noticed that Jetpack is installed on your Pizza site, but not on your Bread site. Try deactivating Jetpack and see if that fixes the issue.
Forum: Fixing WordPress
In reply to: Search results by date, not by relevenceI’ve taken a look at the theme, and you should alternatively be able to change the way the posts are ordered by adding this line above
<?php if ( have_posts() ) : ?>
on line 27 of search.php:<?php query_posts( $query_string . '&orderby=date&order=desc' ); ?>
This will sort them in order by date with the newest posts first.
Forum: Hacks
In reply to: Conditional StatementsGreat! Could you please mark this topic as [resolved] ? Thanks!