Jay Hoffmann
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Page Tester] Visible Scrollbars in ChromeSorry, quick update. After refreshing the page, I noticed that Chrome was working just fine. The way I recreated the problem was to click on “All Sizes,” then use the “Visible Scrollbars” button, then switch to another screen size, and use the “Visible Scrollbars” button again. Hope this helps.
Forum: Fixing WordPress
In reply to: [Loop] Multiple loops on a category templateThe best way to do this is through
pre_get_posts
. Altering the main query through query_posts can get messy quick. Whatpre_get_posts
allows you to do is alter the main query before it is even run, so you can exclude those category posts no matter where the main query is called.The
is_main_query
function is used to hook into just the primary query when you usepre_get_posts
, so that you will not affect any other queries that you have set up.In your functions.php (or even better, maybe through a plugin?) you will run something like this. Just change the category number to your category ID, and leave the negative sign in there to signal that you would like to exclude this category.
add_action( 'pre_get_posts', 'exclude_popular_posts ); function exclude_popular_posts( $query ) { if ( ! is_admin() && $query->is_main_query() && ! $query->get( 'cat' ) ) $query->set( 'cat', '-5' ); }
Forum: Fixing WordPress
In reply to: Editing home/blog pageNo problem, glad I could help.
Your homepage URL will not change. Once you select which page you want to display as your front page, this page will have the URL (https://www.compspots.com/blog/ in your case) of the homepage, NOT the URL that you chose. So no worries about the links, everything will remain the same.
Hope that answers your question.
Forum: Themes and Templates
In reply to: Fresh & CleanCheck out this post on installing WordPress.com themes. Should give you what you need.
https://www.ads-software.com/support/topic/use-wordpresscom-theme?replies=35
Forum: Fixing WordPress
In reply to: Website font has changed to ItalicsYea, unfortunately, your site has been hacked resulting in some stray <i> tags and links to malicious sites.
It’s best to update WordPress and work your way through these resources:
If your site has been hacked, you need to start working your way through all of these resources:
https://codex.www.ads-software.com/FAQ_My_site_was_hacked
https://www.ads-software.com/support/topic/268083#post-1065779
https://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/
https://ottopress.com/2009/hacked-wordpress-backdoors/Additional Resources:
https://sitecheck.sucuri.net/scanner/
https://www.unmaskparasites.com/
https://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.htmlAlso, contact your web host and see if there is anything they can do.
Forum: Themes and Templates
In reply to: Skin/Theme Development HelpA good resource to start is https://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tutorial-2nd-edition/ from the Automattic theme team.
Theme development is kind of a beast of it’s own. You also might want to explore creating a child theme, which should simplify development quite a bit.
https://codex.www.ads-software.com/Child_Themes
https://www.webdesignerdepot.com/2011/12/creating-your-first-wordpress-child-theme/Forum: Fixing WordPress
In reply to: Website font has changed to ItalicsWhat’s the link?
Forum: Fixing WordPress
In reply to: Website font has changed to ItalicsCan you link to your site?
Forum: Fixing WordPress
In reply to: My postsThe solution would be to add the code that PinkishHue suggested to your style.css file. Anywhere in the file should work, but you could do a quick search to see if
.entry-content li
is already in there somewhere. Otherwise, just add:.entry-content li { margin-bottom:30px; }
to that file to add the space.
Also, even though the plugin is old, it should still work and if it doesn’t, you can simply deactivate and delete it.
Forum: Fixing WordPress
In reply to: Editing home/blog pageThere are two ways you could do this.
The first would be to navigate to the index.php file via FTP and edit it directly. This is most likely how it was set up and if you know a little bit about development it would just be a matter of editing that page with some HTML/PHP. The default behavior of WordPress uses index.php as the homepage.
But, I have a sneaking suspicion that the way it was set up, the image is automatically pulled from the category. This would have to be a custom build, but try navigating to “Posts -> Categories” in your admin panel. Click “Edit” on the Compspots production films” category and see if there is a field for you to upload an image. This may solve your problem.
If this doesn’t work and you would like to set up a regular page as your home page, first create that Page in the WordPress admin by navigating to Pages -> Add New and naming the page whatever you would like. When you are finished creating that page, and it looks ok (hit Preview to check out what it will look like) go to Settings -> Reading in the admin. The first option is “Front Page displays”. From there select “A Static Page” and choose the page you created from the dropdown.
This should help with that – https://codex.www.ads-software.com/Creating_a_Static_Front_Page
Forum: Fixing WordPress
In reply to: Working fine now cannot add imagesYou can try to change permissions via FTP, but make sure you change permissions back at the end (follow ALL these steps).
1) FTP to your server, and navigate to the wp-content/uploads directory.
2) There, change the permissions of the /uploads directory to 777 (i.e., chmod to 777). In most FTP clients, you can right-click on the folder to get to the screen that allows you to change the folder permissions. If it asks you whether you would like to apply changes recursively, enable that as well.
3) Check WordPress by adding a new post and uploading an image. If it works, move on to the next step. If it doesn’t, then move on to the next solution.
4) If the previous step worked, now we’ll go back and change the permission of the /uploads folder to 755 (apply changes recursively). We’re doing this to avoid having a write-able (777) folder which is a security vulnerability.
NOTE: Do not leave your permission set at 777 – it exposes your site to hackers.
5) Check WordPress by adding a new post and uploading an image. If it works, then your issue is resolved. If it doesn’t, then move on to the next solution.
Forum: Fixing WordPress
In reply to: How to use Featured ImagesThe codex should help with that.
https://codex.www.ads-software.com/Post_Thumbnails
https://codex.www.ads-software.com/Function_Reference/the_post_thumbnail
Forum: Hacks
In reply to: Different front end menu for different userThe Members plugin allows you to control what different user roles have the capability to see and do. I’ve used it before to limit what each user can see in the admin menu, if this is what you are talking about.
Forum: Fixing WordPress
In reply to: Can't log in to my dashboard.Try:
– switching to the Twenty Eleven theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.– deleting and disabling your plugins one by one, to figure out a troublemaker
– resetting the plugins folder by FTP or phpMyAdmin.
Chances are, a plugin is causing this problem. If that does not work (and ONLY if that does not work) you can try to:
Delete the wp-admin & wp-includes folder as well as all files in your root folder with the exception of wp-config.php and your .htaccess file (if you have one). Then re-upload all files & folders – except the wp-content folder – from a fresh download of WordPress.
Forum: Fixing WordPress
In reply to: Making category pages like landing pages instead of listsFirst, you’re going to want to set up a child theme, so as not to effect the core functionality of your main theme. This is pretty simple to do, you will only have to set up a sub-directory and a couple of required files: https://codex.www.ads-software.com/Child_Themes
After that, add a category.php page to your child theme. Then, simply copy the code from your index.php file to your category.php file, making sure to remove anything you don’t want included on the category page. When displaying a category, WordPress will use your category.php page as a template for display, so you can make any changes there.
https://codex.www.ads-software.com/Category_Templates