Noindex RSS feeds?
Has anyone ever come across any authoritative statement from Google on their official position of whether RSS feeds should be noindexed or not?
Deriving Ideal Indexes: A Guide
Indexes are there to simplify our work when searching for data: they speed up SELECT
queries at the expense of slowing down other kinds of queries like DELETE
s, UPDATE
s, and INSERT
s instead. However, as awesome as indexes might be, they also need a lot of work to get right — in this blog, we will tell you how you should go about deriving ideal indexes for your database. The majority of the examples in this article will focus on MySQL: however, the concept is the same for all major database management systems available on the market today.
What Are Indexes?
If you are familiar with database structures, great — because that's essentially what indexes are! Indexes are database structures that can be used to quickly find rows having specific column values. At the expense of taking up disk space and time if your tables are big and you find yourself adding indexes on top of them, indexes allow databases to skip reading through entire tables and instead, only scan relevant rows which means that databases have less data to scan through.
How Do You Know If a Graph Database Solves the Problem?
One of the greatest questions to consistently badger a developer is "what technology should I use?". Days of thought and analysis determines which option(s) (from an increasingly growing number) best suits the need, manages volume and demand, plans for long-term strategy, simplifies/reduces support, and gets approved by colleagues and management.
Those steps may even seem easy compared to real life. The decision's complexity can get compounded by how much buy-in is needed, and the current constraints of existing technology plus developer knowledge. For instance, investing in an unknown or newer solution means allocation for learning costs.
Scroll Shadows? Pure CSS Parallax? Game Back On.
Chris calls scroll shadows one his favorite CSS-Tricks of all time. Lea Verou popularized the pure CSS approach using four layered background gradients with some clever background-attachment
magic. The result is a slick scrolling interaction that gives users a hint that additional content is available in a scrollable container.
Just one problem: it broke in Safari iOS 13. One day it was all good. The next, not so much. And that wasn’t the only thing affected. Keith Clark’s CSS-only parallax effect also stopped working right about then.
Well, reader Ronald wrote in to say that all is working once again! In fact, I’m writing this on my iPad (Safari 15.5) right now and Chris’s demo is looking sharp as ever. So is Keith’s original demo.
So, what broke it? We still don’t know. But the Safari 13 release notes offer clues:
- Added support for one-finger accelerated scrolling to all frames and
overflow:
elements eliminating the need toscroll set-webkit-overflow-scrolling: touch
.- Changed the default behavior on iPad for wide web pages with responsive meta-tags that require horizontal scrolling. Pages are scaled to prevent horizontal scrolling and any text is resized to preserve legibility.
When was it fixed and what fixed it? Well, on the scroll shadow side, the Safari 15.4 included some work on background-attachment: local
that may have done the trick. On the parallax side, Safari 14.1 added support for individual transform properties… so maybe that?
Scroll Shadows? Pure CSS Parallax? Game Back On. originally published on CSS-Tricks. You should get the newsletter.
Web Design Ideas for Your Retail Business
Retail is a tricky business. You can’t turn a profit if you don’t have enough foot traffic, and for this, stores need a website that people will notice. If you’re planning to introduce your online...
The post Web Design Ideas for Your Retail Business appeared first on 85ideas.com.
New Plugin! Simple Ajax Chat Pro 😎
Launching my latest WordPress plugin: SAC Pro! Unlimited chat forms with tons of great features and no 3rd-party service required (most/all other chat plugins require 3rd-party service). Read the official launch post and get SAC Pro »
How to Add a Favicon to Your Website
What is a favicon? When creating a website, you may overlook something small like the favicon. The favicon, which is short for ‘favorite icon’, is a small, 16×16 image used on browsers to give your space visual representation. Many popular...
The post How to Add a Favicon to Your Website appeared first on Treehouse Blog.
Launch Your Startup Idea in a Day
Recently, I was thinking about the 1987 movie “Wall Street” and more specifically Michael Douglas’ character, Gordon Gekko. At the time, the 20-year-old version of me who saw the film the night it was released was focused on his college education. I was trying to absorb as much as possible in hopes to extract some educational advantage that could be applied to my Bachelor's degree.
I will always remember Gordon Gekko’s quote: “The most valuable commodity I know of is information.”
What Is a Real Estate Marketing Plan
What Exactly Is Real Estate Marketing Real estate marketing is a marketing technique that includes publicizing your unique value proposition to build a brand, acquire clients, and improve sales and income through concluding real estate...
The post What Is a Real Estate Marketing Plan appeared first on 85ideas.com.
Digital Content Marketing Strategy Template: Download Ours or Learn How to Create Your Own
Should I Learn PHP?
According to Stack Overflow 2022 survey, over 42% of developers love PHP. The number has gone up from 22% since the previous year. If you’re beginning your learning journey in coding, you may be wondering if PHP is worth learning....
The post Should I Learn PHP? appeared first on Treehouse Blog.
Querydsl vs. JPA Criteria – Introduction
I've used JPA Criteria for many years. The main advantage is its type-safe approach (compared to JPQL), but the code is quite complicated and not always straightforward. Recently, I came across a Querydsl framework and I saw its benefits immediately. The main benefits for me are:
- Type-safe approach.
- Fluent API with SQL style - the code looks pretty much like SQL queries.
- No limitation to JPA technology - there are modules for other technologies.
The idea of this series is to shed light on the Querydsl framework and compare it with the JPA Criteria. The main goal is to demonstrate the differences in some standard cases. This series is planned to have these parts:
solution to my car rental system code along with the login part
i am unable solve the error in my program
How to Add Conditional Logic to Menus in WordPress
Do you want to show different navigation menu items for different pages in WordPress? Or display a different menu for logged in users?
WordPress allows you to show a navigation menu in a specific location in your theme, but by default, it will always show the same menu.
In this article, we will show you how to add conditional logic to menus in WordPress.
Why Add Conditional Logic to Menus in WordPress?
Navigation menus give your WordPress website structure and help visitors find what they’re looking for. By default, your WordPress website will display the same navigation menu to all users and on all posts and pages.
However, there may be times when you wish to display different menus to different users, or on different pages on your website.
Websites like an online store, a WordPress membership site community, or an online learning platform can all benefit from personalized navigation menus.
Using conditional logic, you could add extra menu items for logged in users so they can manage their accounts, renew their subscriptions, or view the online courses they purchased. You can think of it as WordPress menu access control.
With that being said, let’s take a look at how to add conditional logic to menus in WordPress. Here are the topics we’ll cover in this tutorial:
- Creating New Navigation Menus in WordPress
- Showing a Different Menu to Logged In Users in WordPress
- Showing a Different WordPress Menu Depending on User Role
- Showing a Different Menu for Different Pages in WordPress
- Hiding the Navigation Menu on Landing Pages in WordPress
- Doing More With WordPress Navigation Menus
Creating New Navigation Menus in WordPress
The first step is to create the additional navigation menus you wish to display in WordPress. After that, you can use conditional logic to decide when each menu will be displayed.
Simply head over to the Appearance » Menus page in the WordPress dashboard. If you already have a navigation menu that you use on your website for all users, then this can be your default menu.
Next, you need to click the ‘create a new menu’ link to create a new menu. For example, you could create one menu to show to logged in users, and another to display on a certain WordPress page or category.
On the left-hand side of the screen, you can see a list of your website pages. Simply check the box next to any page you want to add to your menu and click the ‘Add to Menu’ button.
You can also drag and drop the menu items on the right side of the screen to rearrange them.
Further down the page, you can choose a location to display your menu. But, you don’t need to assign a location to this menu now. We’ll do that in the next step.
Don’t forget to click on the ‘Save Menu’ button to store your changes.
For more details on creating menus, you can take a look at our beginner’s guide on how to add a navigation menu in WordPress.
Showing a Different Menu to Logged In Users in WordPress
It’s often useful to display different navigation menus to users depending on whether they have logged in to your site or not.
For example, you can include login and registration links for logged out users and add a logout link to your menu for your logged in menu.
Or if you are running a WooCommerce store, then you could include items for your customers that are hidden from the general public.
First, you need to install and activate the Conditional Menus plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, you need to visit the Appearance » Menus page and switch to the ‘Manage Locations’ tab.
From here, you will see the list of available menu locations and the menus that are currently displayed. These will vary depending on the WordPress theme you are using.
For example, on our demo website, it is showing that our Primary Menu location is showing a navigation menu titled ‘Main Menu’.
We can tell the plugin to show a different menu when a certain condition is matched by clicking on the ‘+ Conditional Menu’ link and selecting another menu from the drop down menu. For this tutorial, we’ll select ‘Logged in Menu’.
Next, you need to click on the ‘+ Conditions’ link.
This will bring up a popup where you’ll see a bunch of conditions to choose from.
Simply check the box next to the ‘User logged in’ option, and then click on the ‘Save’ button.
You can now visit your website to see the logged in user menu in action. You can log out of your website to see the navigation menu that is shown to all other users.
For more detailed instructions and to learn how to do this using code, take a look at our guide on how to show different menus to logged in users in WordPress.
Showing a Different WordPress Menu Depending on User Role
Once a user has logged in, you can also display a different navigation menu depending on the user role you have assigned to them.
For example, you could include extra menu items for an administrator and more limited items for a contributor. Or on a membership site, you could grant different levels of access to different membership levels.
As in the previous section, you need to install and activate the Conditional Menus plugin, then visit the Appearance » Menus page and switch to the ‘Manage Locations’ tab.
You should add the appropriate conditional menu for the user role you will select. For this tutorial, we’ve selected the ‘Nav Menu Administrator’ menu.
After that, you need to click the ‘+ Conditions’ link so you can choose the user role.
You will need to click on the ‘User Roles’ tab to see checkboxes for each user role on your website. Simply click the user roles that will see this menu, and then click the ‘Save’ button.
Showing a Different Menu for Different Pages in WordPress
You can display a different menu for different pages in WordPress. For example, you could display extra menu items on your privacy policy page, such as a link to your cookie notice.
To do this, you need to install and activate the Conditional Menus plugin, as shown above, then choose the appropriate navigation menu and click the ‘+ Conditions’ link.
This time you should click the ‘Pages’ tab. You will see a list of every page on your website.
You need to place a checkmark next to each page where you wish to display the navigation menu, then click the ‘Save’ button.
Hiding the Navigation Menu on Landing Pages in WordPress
There may be pages on your website where you don’t want to display a navigation menu at all, such as your landing pages.
A landing page is designed to increase sales or generate leads for a business. On these pages, you will want to minimize distractions and provide users with all the information they need to take a specific action.
In our guide on how to increase your landing page conversions by 300%, we suggest that you can minimize distractions by removing navigation menus and other links from the page.
You can do that using the Conditional Menus plugin. When selecting the conditional menu, this time you need to choose ‘Disable Menu’ from the drop down menu.
Next, you need to click the ‘+ Conditions’ link to choose when to display the menu.
You should click on the ‘Pages’ tab and place checkmarks next to your landing pages.
Don’t forget to click the ‘Save’ button to store your settings.
Doing More With WordPress Navigation Menus
Navigation menus are a powerful web design tool. They allow you to point users to the most important sections of your website.
Now that you are showing different navigation menus on different pages and for different users, you may be wondering how you can customize them further.
Try these useful tutorials to extend the functionality of the navigation menus on your WordPress website.
- How to add custom items to specific WordPress menus
- How to add custom navigation menus in WordPress themes
- How to add a fullscreen responsive menu in WordPress
- How to create a vertical navigation menu in WordPress
- How to add a mega menu to your WordPress site
- How to style WordPress navigation menus
We hope this tutorial helped you learn how to add conditional logic to menus in WordPress. You may also want to learn how to create automated workflows, or check out our list of the best social proof plugins for WordPress and WooCommerce.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
The post How to Add Conditional Logic to Menus in WordPress first appeared on WPBeginner.
Akismet 5.0 Adds New Spam Detection Feature That Analyzes How Comments Are Posted
For years, the vast majority of Akismet releases have been centered around bug fixes and improving compatibility with various plugins. Version 5.0 was released today, following 4.2.5 earlier this month, with a new feature that should improve Askismet’s ability to detect spam comments.
Akismet engineer Christopher Finke explained how the plugin will now analyze how a comment is posted, in addition to analyzing what is posted:
A typical human commenter on the Web takes about 40 seconds to read a blog post and another 40 seconds to write and submit a comment. Their typing speed varies significantly throughout the creation of their comment, and they regularly use their mouse to click around the page. An automated spambot (even one programmed to act like a person) doesn’t act so human-like: its typing speed and mouseclick speed are superhumanly consistent. It doesn’t spend time “reading” blog posts. Its mouse usage is sparse.
This new feature can detect spam that is posted in a machine-like fashion, even if the spambot is attempting to post a comment with content identical to one that has already been approved.
“The Akismet plugin will begin observing these behaviors so that they can be used as part of the spam-checking process,” Finke said. “None of this data is personally identifiable, and it won’t be used for any purpose other than identifying spam.”
Akismet is bundled with WordPress and is active on more than 5 million sites. More than 62% of users are running on 4.2.x and ~38% are on version 4.1 or older. WordPress users who are having a lot of spam breaking through Akismet’s protection will want to upgrade to take advantage of the new spambot detection features in version 5.0.
Dark Mode In CSS
How often do you find yourself on a website or app looking for a toggle for dark mode? Most apps now-a-days, like Facebook, Twitter, Instagram, & Snapchat just to name a few, use some sort of dark mode feature. Implementing...
The post Dark Mode In CSS appeared first on Treehouse Blog.
How to Use SmartCrawl’s Free Custom Schema Type Builder
Using schema markup is an excellent way to make your website stand out among your SEO competitors. This article explains why schema is essential and how to implement it into your web pages.
You can now create unlimited custom schema types – for free! You’ll see how to do this in just a few clicks with SmartCrawl.
Custom schema types mean you no longer need to rely on SmartCrawl’s schema types already installed.
We’ve written about the benefits of schema markup and how to set it up using our SmartCrawl plugin. However, as you’ll see, adding Custom Schema Types is a bit different. They’re 100% customizable to fit your needs and are created from scratch!
In this brief article, we’ll be going over:
- How to Set Up a Custom Schema Type
- Configuring Schema Type
- Editing Custom Schema Type
- Duplicating Custom Schema Type
- Example Custom Schema Type
To include a custom schema type, it takes just a few simple steps. We’ll start with the building blocks to create a custom schema and journey all the way into a specific example.
Let’s dive into…
How to Set Up a Custom Schema Type
It all begins at SmartCrawl’s dashboard. From here, head to Schema. Then in the Types Builder section, you’ll click Add New Type.
This takes you to all the schema types available. Considering you want to create a custom one, you’ll hit the Custom Type option.
Give the schema type a Name. Using something associated with the schema type is best, so you’ll know exactly what it is.
The name and other edits can be made at any time (which we’ll get into later in this article).
Configuring Schema Type
Next, you’ll add Rules. This set of rules determines where the schema type will be enabled or excluded.
This consists of configuring the schema type by setting up conditions that must be set and any page, post, or taxonomy that matches the set of requirements to assign the information for the custom schema type.
The rule box has a dropdown of options, including Show Globally, Homepage, Category, and more. You’ll then choose what it will equal (=).
Whatever can be combined to equal the rule will appear.
You can always add a rule by clicking the And button.
Plus, you can have Or rules by clicking Add Rule (or).
For more on configuring schema types, be sure to read our documentation.
Editing Custom Schema Type
Once your new custom schema type is saved and ready to go, it can be edited at any time. There are several ways to edit.
One is, if you ever decide to deactivate it, all it takes is one click. The same goes for reactivating it. If it’s blue – it’s active.
It takes just a click to deactivate or activate the schema.
Need to add a Simple, Nested, or Collection property? Or edit a configuration? Change location? That’s all done from the dropdown.
Clicking the Dropdown opens up all the rules and configurations, which you can edit accordingly.
You can Rename, Duplicate, and Delete the custom schema from the Gear Icon.
If you duplicate the schema type, here’s a quick look at what it does…
Duplicating Custom Schema Type
When you Duplicate your custom schema type, another exact version will appear immediately underneath the one you duplicated.
Just like any schema, you can edit the duplicate accordingly.
If you need to edit, go to the Types Builder in the Schema area of SmartCrawl’s admin. All the schemas that you have for your site are all in one place!
Example Custom Schema Type
Now that you’ve seen how to set up a custom schema type let’s see a real-world example of this. To start with, all available schemas are at schema.org. Schema.org is a community that has a mission to create, maintain, and promote schemas.
We’ll use an example from schema.org that’s pretty common: restaurant.
As you can see on the schema.org page, there are a ton of categories to choose schema types.
Just add properties to your custom schema type in SmartCrawl that you want to use. For example, we have the address, region, price range, logo, etc. — things that pertain to a restaurant.
Have the properties you want? Great! Now be sure to test your schema type at Google’s Rich Results Test or the Schema Markup Validator. This will ensure your schema markup is working properly.
And that’s it! Your custom schema for a restaurant is done, and patrons will set reservations in no time.
What’s Your (Schema) Type?
With custom schema type, there’s an endless possibility of schema to include for your WordPress site. And as you can see, it can be set up, enabled, and duplicated in just a few clicks.
Plus, it doesn’t cost you a thing! The custom schema type is included in our free and Pro versions of SmartCrawl.
So, what’s your schema type? Create a custom schema type to stand out amongst your SEO competitors and bring in more business today.