Shunarjuna
Forum Replies Created
-
Forum: Hacks
In reply to: Custom editor style in child themeIf your columns are created with a shortcode then that styling isn’t going to have any effect. You would need to add some placeholder html like with the wp gallery, or put the actual html markup in the editor rather than a shortcode.
Forum: Hacks
In reply to: Hide social buttons on mobile devicesI believe the code you are looking for is;
@media only screen and (max-width: 400px) { .simplesocialbuttons { display: none; } }
Forum: Fixing WordPress
In reply to: Missing "Revisions" checkbox in "Screen Options" panelI just encountered this problem too. It tried several clean installs of wordpress on fresh databases and the issue kept comming up. I had no plugins and hadn’t set WP_POST_REVISIONS to false. Revisions existed in the database. They just weren’t available to view in the post edit screen.
Here is what I did to fix the issue (at least, it worked for me but I really have no idea why).
1. Open the edit page for a post or page, make a few changes then wait for an autosave.
2. Exit the page without saving.
3. Re-open the edit screen for that post/page. Where wordpress tells you there is an autosave click “View the autosave”.
4. Restore the autosave, update the post, and the reviews should now be available to view.
Forum: Fixing WordPress
In reply to: Create folder of images in root directoryOkay, sorry. It turns out it was the images, not the way I was doing it.
Thanks for this, it is just what I needed too.
Forum: Hacks
In reply to: Convert text area into wp editorJust closing the thread.
Forum: Hacks
In reply to: Display number of posts by user, only if they have any.Just closing the thread.
Forum: Hacks
In reply to: Display number of posts by user, only if they have any.Wow, that’s perfect now. You rock.
I was actually using elseif then repeating the line with “article” instead of “articles”
Your way is much much better, thank you.Forum: Hacks
In reply to: Display number of posts by user, only if they have any.That’s excellent. Thank you so much. You’re a champion!
Forum: Hacks
In reply to: Convert text area into wp editorNever mind, I have it sorted.
In case anyone else wants to do the same sort of thing here is my solution;
I simply replaced
<textarea name="post_content"><?php echo esc_textarea( $listing->post_content ); ?></textarea>
with
<?php wp_editor( $listing->post_content, 'listingeditor', $settings = array('textarea_name' => post_content) ); ?>
Forum: Hacks
In reply to: get_stylesheet_directory_uri won't work for meI tried it again but it just doesn’t work. Here is the code, cut & paste, that does work with the image in my media library;
<div class="menu-buttons-1"> <p id="menu-links-1"><img style="...etc" src="https://www.teachmemusic.com.au/wp-content/uploads/2012/09/find-a-teacher.png" title="Use the search form above to find a music teacher in your area" alt="Find a music teacher"></p> </div>
And here, cut & pasted again, is the code that I just tried with a random image from my images folder;
<div class="menu-buttons-1"> <p id="menu-links-1"><img src="<?php bloginfo('template_directory'); ?>/images/footer-bg.jpg" title="" alt="" /></p> </div>
When I tried that I got this message;
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/arjuna/public_html/wp-content/themes/vantage-child/functions.php on line 42
Forum: Hacks
In reply to: get_stylesheet_directory_uri won't work for meI must be doing something else wrong then. Thanks for your help, I’ll keep trying.
Forum: Hacks
In reply to: get_stylesheet_directory_uri won't work for meThanks, I tried it but it didn’t work.
Also, I though ‘template_directory’ was for parent themes. I’m using a child theme. Does that matter?