Visitor Analytics: WordPress Site Stats & User Analytics

Featured Imgs 29

Visitor Analytics: WordPress Site Stats & User AnalyticsDo you have a website? Of course, you do, and I can wager all my money that you want more people to find your site, hence your business. Creating a website is all fun and everything good. It’s exciting building an online space where you can share the things you’re passionate about. But building a […]

The post Visitor Analytics: WordPress Site Stats & User Analytics appeared first on WPExplorer.

10 SEO Tips for Effective Websites: Non-Obvious Tips Proven to Work

Featured Imgs 23
If you have a website and want it to be found online, you’ll have to utilize Search Engine Optimization (SEO) sooner or later. Chances are you’re already familiar with the concept of keywords and Google bots. However, with the ever-changing digital landscape, it’s hard to find relevant and trustworthy website SEO tips.

How to Control Your RSS Feeds Footer in WordPress

Wp Plugins

Do you want to customize the RSS feeds footer in WordPress?

This allows you to add custom text, links, or even advertisements below your post content in your RSS feed.

In this article, we’ll show you how to easily control your RSS feed footer in WordPress, so you can display the content you want.

Control RSS feed footer in WordPress

Why Add Content to RSS Feed Footer in WordPress?

RSS feeds offer an easier way for users to read your blog posts in their favorite feed reader apps such as Feedly.

However, RSS feeds can also be used by content scrapers to automatically steal your blog posts as soon as they are published.

Sometimes these content scrapers end up ranking higher than your original post in search engines.

To learn more, see our step by step beginners guide to preventing blog content scraping in WordPress.

Adding additional content to your RSS feed footer allows you to add backlinks to your main site and the original post at the end of each article. This can help you rank higher for your posts even if they are copied by content scrapers.

By manipulating your RSS feed footer, you can also give your readers a way to visit your WordPress blog directly from your RSS feed.

Having said that, let’s take a look at how to easily control your RSS feed footer in WordPress.

Method 1. Add Content to RSS Feed Footer Using All in One SEO

This method is easier and recommended for all WordPress users. It uses the All in One SEO plugin, which is the best WordPress SEO plugin used by over 2 million websites.

First, you need to install and activate the All in One SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit All in One SEO » General Settings page and click on the ‘RSS Content’ tab.

This gives you an overview of your WordPress RSS feed settings, and your WordPress RSS feed URL.

AIOSEO RSS general settings

Under the ‘RSS Content Settings’, the first box allows you to add content before each post. The second box allows you to add content to the post footer.

Next, scroll down to the ‘RSS After Content’ section to edit your RSS feed footer.

AIOSEO default RSS footer

Right away, you’ll notice that AIOSEO automatically adds credit text with backlinks to your website in the RSS feed footer.

You can either use the text as-is, or you can add your own content and tags.

AIOSEO RSS feed footer save

Don’t forget to click ‘Save Changes’ before you exit the screen.

You can now view your RSS feed to see the changes. At the end of each article, you will be able to see content you added to your RSS feed footer.

Footer text in WordPress RSS feed

Method 2: Manually Add Content to RSS Feed Footer in WordPress

This method requires you to add code to your WordPress files. If you haven’t done this before, then check out our guide on how to copy and paste code in WordPress.

You’ll need to copy and paste the following code in your theme’s functions.php file, in a site-specific plugin, or by using the Code snippets plugin.

function wpb_feed_filter($query) {
if ($query->is_feed) {
add_filter('the_content','wpb_feed_content_filter');
add_filter('the_excerpt_rss','wpb_feed_content_filter');
}
return $query;
}
add_filter('pre_get_posts','wpb_feed_filter');
 
function wpb_feed_content_filter($content) {
// Content you want to show goes here 
$content .= '<p>Thanks for reading, check out <a href="'. get_bloginfo('url') .'">'. get_bloginfo('name') .'</a> for more awesome stuff.</p>';
return $content;
}

This code simply checks if the page requested is an RSS feed, and then filters the content to display your message in the RSS feed footer.

We hope this article helped you learn how to control your RSS feed footer in WordPress. You may also want to see our ultimate guide on how to setup All in One SEO for WordPress and our expert pick of the best WordPress RSS feed plugins.

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 Control Your RSS Feeds Footer in WordPress appeared first on WPBeginner.

Did You Know About the :has CSS Selector?

Featured Imgs 23

File this under stuff you don’t need to know just yet, but I think the :has CSS selector is going to have a big impact on how we write CSS in the future. In fact, if it ever ships in browsers, I think it breaks my mental model for how CSS fundamentally works because it would be the first example of a parent selector in CSS.

Before I explain all that, let’s look at an example:

div:has(p) {
  background: red;
}

Although it’s not supported in any browser today, this line of CSS would change the background of a div only if it has a paragraph within it. So, if there’s a div with no paragraphs in it, then these styles would not apply.

That’s pretty handy and yet exceptionally weird, right? Here’s another example:

div:has(+ div) { 
  color: blue; 
}

This CSS would only apply to any div that directly has another div following it.

The way I think about :has is this: it’s a parent selector pseudo-class. That is CSS-speak for “it lets you change the parent element if it has a child or another element that follows it.” This is so utterly strange to me because it breaks with my mental model of how CSS works. This is how I’m used to thinking about CSS:

/* Not valid CSS, just an illustration */
.parent {
  .child {
    color: red;
  }
}

You can only style down, from parent to child, but never back up the tree. :has completely changes this because up until now there have been no parent selectors in CSS and there are some good reasons why. Because of the way in which browsers parse HTML and CSS, selecting the parent if certain conditions are met could lead to all sorts of performance concerns.

Putting those concerns aside though, if I just sit down and think about all the ways I might use :has today then I sort of get a headache. It would open up this pandora’s box of opportunities that have never been possible with CSS alone.

Okay, one last example: let’s say we want to only apply styles to links that have images in them:

a:has(> img) {
  border: 20px solid white;
}

This would be helpful from time to time. I can also see :has being used for conditionally adding margin and padding to elements depending on their content. That would be neat.

Although :has isn’t supported in browsers right now (probably for those performance reasons), it is part of the CSS Selectors Level 4 specification which is the same spec that has the extremely useful :not pseudo-class. Unlike :has, :not does have pretty decent browser support and I used it for the first time the other day:

ul li:not(:first-of-type) {
  color: red;
}

That’s great I also love how gosh darn readable it is; you don’t ever have to have seen this line of code to understand what it does.

Another way you can use :not is for margins:

ul li:not(:last-of-type) {
  margin-bottom: 20px;
}

So every element that is not the last item gets a margin. This is useful if you have a bunch of elements in a card, like this:

CSS Selectors Level 4 is also the same spec that has the :is selector that can be used like this today in a lot of browsers:

:is(section, article, aside, nav) :is(h1, h2, h3, h4, h5, h6) {
  color: #BADA55;
}

/* ... which would be the equivalent of: */
section h1, section h2, section h3, section h4, section h5, section h6, 
article h1, article h2, article h3, article h4, article h5, article h6, 
aside h1, aside h2, aside h3, aside h4, aside h5, aside h6, 
nav h1, nav h2, nav h3, nav h4, nav h5, nav h6 {
  color: #BADA55;
}

So that’s it! :has might not be useful today but its cousins :is and :not can be fabulously helpful already and that’s only a tiny glimpse — just three CSS pseudo-classes — that are available in this new spec.


The post Did You Know About the :has CSS Selector? appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Two New Editor Fonts from Toshi Omagari

Featured Imgs 23

Toshi Omagari makes fonts. I caught wind of the Codelia release just recently:

Fortunately, Toshi allowed us to purchase a license to allow you to use it on CodePen! You’ll find those options in your Settings > Editor area.

Codelia

I think Codelia is awfully nice, but in chatting with Toshi, their favorite is actually Comic Code, another coding font they have created.

Comic Code

I was like: No way, surely Comic Code is to jokey and childish to actually code in. But I’ll tell ya, I’ve been using it for about a week now and I’m still finding it fun and perfectly usable.

Looks good eh? Toshi thinks so:

The post Two New Editor Fonts from Toshi Omagari appeared first on CodePen Blog.

Lower Inventory Cash Burn in Your WooCommerce Store

Featured Imgs 26

Lower Inventory Cash Burn in Your WooCommerce StoreNo matter how successfully you market your e-commerce business, an inability to handle inventory can become a roadblock in your way to making efficient supply decisions. Your inventory management process becomes largely inefficient when you don’t have a grip on your inventory or keep a track of it with unorganized spreadsheets. To avoid inventory cash […]

The post Lower Inventory Cash Burn in Your WooCommerce Store appeared first on WPExplorer.

12 Effective Time Management Strategies to Get More Stuff Done

Featured Imgs 26
One of the trickiest things in life is to assume you have time. How often do you tell yourself “This shouldn’t take long” and then wonder why you only managed to finish half of what you had planned for the day? We are very good at getting busy but time doesn’t wait for us. It just passes, no matter if we manage to squeeze in some productivity or not. The best way to stay on top of things is to start employing efficient time management strategies!

Learning the Art of Electronics (A Hands-On Lab Course)

Featured Imgs 11

This introduction to circuit design is unusual in several respects. First, it offers not just explanations, but a full course. Each of the twenty-five sessions begins with a discussion of a particular sort of circuit followed by the chance to try it out and see how it actually behaves. Accordingly, students understand the circuit's operation in a way that is deeper and much more satisfying than the manipulation of formulas. Second, it describes circuits that more traditional engineering introductions would postpone: on the third day, we build a radio receiver; on the fifth day, we build an operational amplifier from an array of transistors. The digital half of the course centers on applying microcontrollers, but gives exposure to Verilog, a powerful Hardware Description Language. Third, it proceeds at a rapid pace but requires no prior knowledge of electronics. Students gain intuitive understanding through immersion in good circuit design
Click Here

MySize Launches Clothes Sizing SDK for eCommerce Platforms

Featured Imgs 23

MySize, Inc, the developer and creator of e-commerce measurement solutions, announced the launch of its MySizeID E-Commerce Plugin SDK. The SDK enables e-commerce companies to create a MySizeID plugin and share it with their customers (online store owners) over their app marketplace. The plugin enables business owners to provide their shoppers with the right size for apparel.

10 Popular APIs for Words

Featured Imgs 23

With all the changes in technology in the last half century, a main form of communication remains relevant: the written or spoken word. Words are powerful, dramatic, inspiring, expressive, meaningful, and a very important part of our society.