How did you arrange the display of posts on the main page and in WordPress categories? How to exclude posts and categories from WordPress home page, rss feed, categories and archives without plugins

This article will be a continuation of the topic on preparing a WordPress site for promotion in search engines. We have already described how to make static (permanent) text on promoted categories. Today I will show you how to do a similar thing, but only this time for the main page of the site, which, as you know, has the greatest weight. All you have to do is write a text that will help with promotion.

If you came from Google or Yandex and missed the previous article, then check out..

There are several ways to create static text on the main page of a WordPress site:

  • using the built-in WordPress function (read the article). As you can see, it's a matter of two seconds.
  • the second method involves placing certain code in the index.php or home.php file (the name depends on the template of your site)
  • simply by selecting the desired page in Settings in the admin panel (screenshot below)
  • by creating a separate template for the Main theme in the theme files (you will need knowledge of PHP/CSS or the help of a specialist).

If you chose the first method, then do not forget to close the selected post for indexing so that there is no duplicate content. You can do this with robots.txt.

If you choose the second method, then to do this, you need to open the file index.php (home.php) and insert the following before the function for displaying all posts:

arbitrary text or code

This code allows you to display information only on the main page. All you have to do is place it inside required block with text or required code.

The same code can be used in widgets if you need to display something only on the main page of the site. Great for something like this plugin will do.

If you don’t understand why you should insert the code I suggested above, then here’s a little hint: in my template for displaying information on Home page The file index.php is responsible. It contains this code:

>

< div id = "post- " >

It continues on, but it doesn't matter anymore. It is this part of the code that says that from this moment our constantly changing posts begin to appear on the main page of the site. That’s why we need to insert code in front of it to statically display text on the main page, which is what we’re talking about today.

Hello, dear readers of the blog site. You've probably noticed that on different blogs home pages may look different.

I’m not talking about creating a static main page (although I will mention this, because someone might be interested), but I want to focus on displaying announcements of new articles (including in categories or tag archives).

On the main page (and in sections) of a WordPress blog, entire posts can be displayed, or their introductory parts before the More tag, or very short announcements with a post thumbnail or even without a thumbnail at all. In the end, it is possible to use only headers, or a complete redesign of the standards adopted in this engine.

I won’t talk about the option of complete redrawing, but about standard features that this one provides us, I will try to tell you in every detail. In principle, I already had to write about much of what I am about to say, but it was all in separate publications, so now I myself can hardly remember where exactly and what is located (I use it for this purpose). I hope it will be interesting.

Default view of the home page and categories in WordPress

As you probably know, if you don’t make any special moves when writing a post in WordPress, it will most likely be completely displayed on the main page, and immediately below it will be the previous post that you published earlier. Why did I say "most likely"? Because the display of posts on the main page largely depends on, and they can be different, including quite exotic ones.

But for the most part, to display posts on the main page in the index.php file (this is the template file that is used to create the appearance of the main page in WordPress - see the article at the link above about themes) a construction like:

It is thanks to it that entire articles will be displayed on the main page, unless you use the wonderful one, to which I once devoted an entire article. When viewing the full version of the article, it does not affect its appearance in any way, but on the main page, not the entire post will be displayed, but only that part of it that is located above the More tag, and instead of the tag itself, an inscription like “Read in full” will be displayed.

Personally, I write articles without using a visual editor, and this tag, inserted into the text of the article (between paragraphs), looks like this:

However, you can play around and write, for example, like this:

I think that the essence is clear - we create a link to the article from the main page not just with “Read more” (the same for all articles), but we add to it the keywords by which you want to get to the Top of search engines. I won’t say that this method is 100% beneficial, but some bloggers (including myself for some time) use it.

before breaking it into pages, is set in the settings. To do this, you will need to go into it, select “Settings” - “Reading” from the left menu and put the required number of materials (posts) in the “Display no more than on blog pages” field.

What disadvantages can be noted with this type of display of materials on the main page of WordPress? In general, there are several of them:

  1. If you display entire posts on the main page (without the More tag), then in the eyes of search engines you will see duplication of content on your site, which can lead to a decrease in traffic to your blog from Yandex and Google. It’s not a fact that this will happen, but the likelihood of a deterioration in ranking will be very high. Roughly speaking, search engines will be offended by you for slipping the same thing into their index on different pages of the site, which clogs their servers and leads to additional costs.
  2. Again, without using the More tag, you will most likely have to seriously limit the number of posts that appear on the main page so that it does not look like an endless and difficult to use sheet. And even in this case, the usability of your blog will still not be very high.
  3. Even if you use the More tag, but put a very large fragment of the post on the main page, then search engines may again see, if not complete, but partial duplication of content. It is clear that this will not have a global impact, but the entire world of SEO is built on hundreds of little things that together determine the success or failure of your project. Therefore, it is better to immediately get used to doing everything “as it should”, and not “it will do.”
  4. The situation with duplication of content within the site can become even worse if you display full versions of posts or large pieces of them both in categories and in tag archives (as well as in temporary archives). This problem can be partially solved by blocking, for example, temporary and tagged archives from indexing by search engines using a plugin (the article below describes how this can be done), but it is better not to do this.

There is a way to solve the problem of duplicate content when using the_content function. This is a special NOTEASER tag. What is he doing? When using it, only that part of the article that is located above the More tag will be displayed on the main page, and on the page of the post itself the announcement will not be displayed at all (only the text immediately following MORE). The design will look like this:

Thus, you seem to increase the uniqueness of the texts on your blog (get rid of partial duplication). But there is one nuance that outweighs all the advantages of using NOTEASER. When accessing a post page not from the main page or section of your blog, but from a search engine or via a direct link, the user will not see the introductory part at all, which can cause him bewilderment and confusion.

Displaying posts in categories - the_excerpt instead of the_content

By the way, in categories and tag archives The same display method is also often used. Those. Either full versions of posts are displayed (in descending order of their creation date), or fragments trimmed with the More tag are displayed.

Those. used in the category template (usually this is the archive.php template file from the folder with the theme you are using) the same function as for displaying posts on the main page:

You can see an example of such output of posts in categories on Mikhail Shakin’s blog. Of course, initially all this depends on the theme you are using. But everything is in your power. It will be enough and the display of posts in categories will become significantly more usable, while the degree of duplication of content on your blog will significantly decrease.

Moreover, making this setting is very simple - just replace the function code in the archive.php file the_content() to the_excerpt():

In this case, only the title and a small number of the first words in the article will remain from the post (without formatting and with the removal of existing pictures, hyperlinks and other markup). I’ll immediately make a reservation that the number of words (or characters) in the title, as well as the number of the first words displayed in the post, can be limited using (I’ll explain exactly how below).

How to make post announcements in WordPress categories unique?

However, the contents of the post announcement when using the the_excerpt() function can be replaced by the contents of the field "Quote", if you filled it out when writing the article (usually, it is located immediately below the text entry window). By the way, this option also reduces duplication of content, but I don’t practice it due to the fact that I “don’t practice.” In general, banal laziness mother.

If you don’t see the area called “Quote” under the post text entry window in the WordPress admin panel, then delete your site and reinstall the engine again, and then rewrite all the articles and start promoting them. Well, seriously, at the very top of the admin panel on the right side you will find a “tab” called “Screen Settings”. By clicking on it, you can easily activate the panel you need (or remove an unnecessary one) by simply checking or removing the desired checkbox.

We customize the appearance of posts in categories when displaying them using the_excerpt

So, if you don't fill out the Quote field for each post, then using the_excerpt() under the title will by default. Are you not happy with this? As I mentioned just above, everything can be configured using functions.php. Just open it and add a few new lines:

where instead of 30 you can put the number of words you need, displayed on WordPress category pages under the article headings.

If your article titles are as long as mine, then categories are fine. To do this, instead of the_excerpt(), insert:

where instead of 7 you can put the number of words you need in the title of the post, which will be displayed in the headings of your blog. But for this whole thing to work, you will need to add the following function to the functions.php file:

Function do_excerpt($string, $word_limit) ( $words = explode(" ", $string, ($word_limit + 1)); if (count($words) > $word_limit) array_pop($words); echo implode(" ", $words)..."; )

Instead of the ellipsis in the last line, you can put something else, but most likely it’s better to leave it that way.

How to display only post titles on the main page or in WordPress categories?

Well, everything is quite simple here. It will be enough to remove archive.php from the template file (responsible for creating archives (categories, tags, etc.), but it may not be in your theme) or index.php (responsible for creating the main blog page, but often and all others using conditional operators) the_excerpt or the_content function (depending on what exactly is used).

For example, the following construction is responsible for displaying posts in categories:

" rel="bookmark" title="!}">

Removing from this post:

I will ensure that in my categories only post titles will be displayed without any announcement texts or the contents of the “Quote” field. In some cases, this option may be quite in demand. In any case, in this way you completely solve the problem of duplication, voiced just above in the text.

Adding thumbnails to posts on the main page and in categories

When using the_excerpt, the post does not look very attractive, because all formatting, links and images are removed from it. In the sections this can be survived at the very least, but on the main page it will be necessary to somehow revive this matter. Thumbnails, which have been a staple in WordPress for quite some time, are perfect for this.

If you don’t have thumbnails created for all your posts, that’s okay. At one time I didn’t have them either, because I started blogging even before they appeared in WordPress. However, there is a wonderful Auto Post Thumbnail plugin for automatically creating them based on the first image in the post (I was quite happy with this option). After installation, go to its settings and click on the button to create miniature images of various sizes, which will be based on the first image of the post.

Wait half an hour and thumbnails for all blog articles will be created automatically. Lepota. Well, then I just started adding a thumbnail before publishing each article (there should be a corresponding area in the right column of the admin panel):

If for some reason this “Post Thumbnail” area is not displayed in the admin panel when working with a post, then, as I said above, demolish the blog and start all over again. True, I took a different path - I added a couple of new lines at the very bottom to the wonderful functions.php file (from the folder with the theme you are using):

And everything worked. So, if you don’t have any problems with thumbnails, then you can try replacing the usual display of posts on the main page or in WordPress categories using the_excerpt with this design, adding a thumbnail to the post:

By default, the thumbnail will be flush to the left edge and the text will wrap around it. Only I added small thumbnails to my style file style.css so that the whole thing would be better perceived. To do this, it was enough to add just one line:

Wp-post-image (padding:3px 15px 5px 5px;)

However, on the main page I still left the output of posts using the_content and the More tag, and in categories I still use the “naked” the_excerpt. But still, I implemented the described method, but not on the “” page, which is quite typical for a blog.

I think it turned out cool.

How to make the home page permanent (static) in WordPress?

Actually, a couple of years ago I did just that. Then on my main page (at the address - https://site) an article was displayed, which now lives on the 404 error page (see how to configure it), which you can see by simply adding some character from the keyboard to any URL of my site (in the address bar, for example, this is https://site/404).

Why did I abandon the static home page? Don't know. For some reason. In general, at one time I decided to return to the classics, although there were no special prerequisites for this. However, let me explain how this is all implemented. Actually, we need to solve four problems:


That's all. After that, look at the result and, if necessary, improve the content of the already permanent (static) main page of your blog.

How did you arrange the display of posts on the main page and in sections of your blog on WordPress?

Good luck to you! See you soon on the pages of the blog site

You can watch more videos by going to
");">

You might be interested

Where to download WordPress - only from the official website wordpress.org
Headings of articles H1, H2, H3 in WordPress, as well as methods of displaying categories (the_content, the_excerpt and others)
How in WordPress you can display posts from a category with thumbnails (creating them in Auto Post Thumbnail and catch_that_image)
WordPress Blog Settings You Should Make Immediately After Installing It The left menu disappeared in the WordPress admin after updating

The standard blog format is designed in such a way that its messages (posts) are displayed one after another, with the newest ones being displayed first, and the old ones gradually going into the archive. This was the case in the very beginning, but as blogging evolved, we could see many different variations of WordPress templates, which, for example, display information in a newspaper format, and so-called featured articles are shown on top. Or, for example, photo blogs, which contain practically no textual information, only photos, and so on. People gradually began to deviate from the standards. And that's great.

One of these things that can slightly diversify your blog is displaying specific text on the main page of the blog. That is, the reader goes to the site.ru project and sees a small text description of what the site is actually about, what can be found here, etc. Sometimes such descriptions (introductions) are placed in the sidebar, sometimes in the blog header. You can do it a little differently by combining two options:

  • a text block with an introduction is displayed on the main page;
  • on all other pages, the blog description is displayed in the sidebar, but in a reduced (more compact) form.

An example can be found in the blog about tea. I haven’t done all the design work there yet, but just today I was figuring out how to display text on the main page. It turns out that many of the posts on WordPress Inside are based on personal experience :)

By the way, if you only need to correct the design of the main page, then it will be enough to use it - it will add the corresponding classes to the body, and then you will apply CSS styles.

To solve our problem we will use wordpress conditional operators. But there is a small “discrepancy” here that we have not yet been able to figure out, although it does not affect the final result. The trick is that to determine the main page of a blog there are 2 operators at once - is_home() and is_front_page(). Based on the description in the code, I personally couldn’t fully understand the difference between them, some terms are the same, so I just practically found a working option.

is_home()– a conditional operator that is TRUE or FALSE and checks whether the “main page” for the blog is currently displayed. It was also said that in WordPress 2.1 the function is processed slightly differently than in other versions and, if a static page is selected as the main page, then problems may arise there.

is_front_page()– added in version 2.5, is also conditional, takes the value TRUE or FALSE depending on whether the “front” page or post is currently displayed. That is, apparently universal function and it works in both cases - when you have selected “display latest posts on the main page” in the admin panel or “static page” is selected as the main page.

If I am being read by WordPress gurus who understand all the intricacies of the system, then I would be grateful for the clarification. But for now I can say that I use is_front_page() and have not seen any problems. The “latest posts” are displayed on the main page. We get something like:

There are situations in blogs when the main page does not fit all the posts and pagination appears at the bottom. What important(!) WordPress system when clicking on them does not change the page state from “home” to another- the result is a main page that simply does not fit in one go. Therefore, we will use another important conditional operator:

is_paged()— reacts (TRUE or FALSE) to a situation where all archive posts (for main, category, tags) do not fit on one page and are split into several. Moreover, it should be noted that this does not apply to splitting a separate post into pages using .

Total - display the text only on the main page

To display text on the main page and hide it on any other pages, I use the code that I add to the template file index.php before fetching the latest blog posts have_posts():

My blog

Welcome to my new blog

Now step number 2 - we will display a short description for the blog in the sidebar - for this we open the file sidebar.php and add the lines where we need them:

about the project

Short description

about the project

Short description

Here we see another conditional statement that may be useful to someone.

is_page('ID')– checks the display of the page with the number specified in the ID. In my example, I hide a short description of the blog in the sidebar on the page with id 2, because I have a whole article “about the project” prepared there. That is, there is no point in displaying a short description when everything is told directly in the content block.

Hello guys!

Today there will be a technical article that will show you how to exclude posts from the main page of a WordPress site.

You'll also learn how to exclude entire categories, not just specific entries. I will show you many options, both with and without plugins. In general, everything is as always.

In what cases should it be used?

The need to exclude some posts, that is, their announcements, from the main page mostly exists on personal blogs, when in addition to large, high-quality articles for a regular audience, it is also worth filling the resource with simple SEO optimized articles.

Such articles are unlikely to be useful to blog members, since they already know all this. In order not to litter the main page with unnecessary announcements, it would be better not to show them. At the same time, they should be added to the site in order to attract new audiences to the resource from search engines. They also need to be displayed, but this should be done on the pages of sections and archives, so that newcomers can find them using navigation through the sections of the site.

For example, you will not find this article on the main page of my blog on any of their pagination pages (page navigation). At the same time, the announcement of the article is visible in the “Useful” section and on the “All Articles” site map page.

Without plugin

The method without a plugin is always preferable, but in this case it will not be a priority, since in order to exclude some article you will have to make changes to the template file that you have installed every time. But still, I will show several different options for implementing such a solution, since it is quite possible that this will suit you.

Below I will give various pieces of code that should be placed in the functions.php template file.

Excluding specific records by ID

In this option, there is no need to hide entire categories from visibility on the main page, as many do with the help of various plugins. All you have to do is add the IDs of the required records in the code.

function exclude_post($query) ( if ($query->is_home) ($query->

if ($query -> is_home )

( $query -> // post id

return $query ; )

In line 3, numbers 1 and 2 are ID records that will not appear on the home page. You need to write it separated by commas.

You will find out the ID of the post, page and category in the address bar of the browser when viewing through the editor.

The next option will allow you to exclude entries from the RSS feed.

Exclusion from RSS feed

This code will allow you to exclude announcements from the news feed and not send them via e-mail if you use the subscription and announcement service using Feedburner.

function exclude_post($query) ( if ($query->is_feed) ($query->set("post__not_in", array(1, 2));) // post (post) id return $query; ) add_filter(" pre_get_posts","exclude_post");

function exclude_post ($query) (

if ($query -> is_feed )

( $query -> set ( "post__not_in" , array ( 1 , 2 ) ) ; ) // post id

return $query ; )

add_filter ("pre_get_posts" , "exclude_post" ) ;

Adding records in this case and in all others occurs in the same way.

Exclusion from categories and archives

To exclude posts from category pages, you should use the following code.

function exclude_post($query) ( if ($query->is_category) ($query->set("post__not_in", array(1, 2));) // post (post) id return $query; ) add_filter(" pre_get_posts","exclude_post");

function exclude_post ($query) (

if ($query -> is_category )

( $query -> set ( "post__not_in" , array ( 1 , 2 ) ) ; ) // post id

return $query ; )

add_filter ("pre_get_posts" , "exclude_post" ) ;

This code can be modified to apply an exception from archives. It is necessary to replace the is_category function with is_archive in the 2nd building.

Exclusion from search page

This option may also be required if some records should not be shown to visitors when they use the site search. For example, these could be various news articles that do not contain content on the subject of the site.

function exclude_post($query) ( if ($query->is_search) ($query->set("post__not_in", array(1, 2));) // post id return $query; ) add_filter(" pre_get_posts","exclude_post");

function exclude_post ($query) (

if ($query -> is_search )

( $query -> set ( "post__not_in" , array ( 1 , 2 ) ) ; ) // post id

return $query ; )

add_filter ("pre_get_posts" , "exclude_post" ) ;

Combining several options

You can combine all the above options and exclude records from all types of pages at once or selectively on the necessary ones.

If you take a good look at all the codes, then in the 2nd line you can see a condition in which the page types parameter is set to disable the display of post announcements in them:

  • is_search
  • is_category
  • is_feed
  • is_home

You can combine all options and exclude posts from everywhere or on some pages. For example, for exclusions from categories and main, you should place the following code in the functions.php file.

function exclude_post($query) ( if ($query->is_category || ($query->is_home)) ($query->set("post__not_in", array(1, 2));) // post id ) return $query; ) add_filter("pre_get_posts","exclude_post");

function exclude_post ($query) (

if ($query -> is_category || ($query -> is_home ) )

( $query -> set ( "post__not_in" , array ( 1 , 2 ) ) ; ) // post id

return $query ; )

add_filter ("pre_get_posts" , "exclude_post" ) ;

The 2nd line with the condition (if) contains parameters for categories (is_category) or home (is_home).

Note that each next parameter is written inside the previous one through 2 vertical bars and is located in its own brackets. That is, if you look at the previous code, you will see that the second condition for the main page is enclosed in its own brackets and is inside the general brackets that wrap the first condition for the categories.

If it is worth adding some kind of third condition, for example for archive pages, then it is worth adding it inside brackets with the condition for the main one (is_home) and writing it through 2 vertical bars. In practice it looks like this.

function exclude_post($query) ( if ($query->is_category || ($query->is_home || ($query->is_archive))) ($query->set("post__not_in", array(1, 2) );) // id of the post (post) return $query; ) add_filter("pre_get_posts","exclude_post");

function exclude_post ($query) (

if ($query -> is_category || ($query -> is_home || ($query -> is_archive ) ) )

( $query -> set ( "post__not_in" , array ( 1 , 2 ) ) ; ) // post id

return $query ; )

add_filter ("pre_get_posts" , "exclude_post" ) ;

Using the same principle, add other types of pages to exclude.

The next option for excluding records is to exclude entire headings (categories).

Excluding entire categories

This is very convenient for lazy people, when you can simply create some kind of category and add there all the posts that do not require display on certain types of pages.

The code structure is almost the same. It only changes the parameter that specifies the exclusion of a post or category. In the previously discussed cases, the last line was set to exclude_post. In the new code it should be replaced with exclude_cat.

function exclude_cat($query) ( if ($query->is_home) ($query->set("cat","-1, -2, -3");) // category id return $query; ) add_filter( "pre_get_posts","exclude_cat");

function exclude_cat ($query) (

if ($query -> is_home )

( $query -> set ("cat" , "-1, -2, -3" ) ; ) // category id

return $query ; )

add_filter ("pre_get_posts" , "exclude_cat" ) ;

As you can see, the last line has undergone changes and the 3rd line, where the parameter that reads the category ID has been changed. ID in this case is written through a dash, but also through a comma.

The principle of constructing conditions for page types is similar to the options discussed earlier, where I showed the example of excluding specific posts. It is worth changing the 2nd line, adding the necessary parameters for categories, search, archives or RSS feeds.

So, we looked at methods without a plugin. There is also an option to exclude entries about tags, but now tags are no longer very relevant for 99% of resources. If you need such information, please write about it in the comments. I'll add everything right away.

Plugins

Plugins are a more flexible solution in this matter, since when excluding specific entries there is no need to edit the template file each time. It’s worth putting a checkbox in the editor of the desired posts when publishing them or after.

If it is worth excluding a special category created for articles that do not require display, then it is better to use one of the codes provided above.

Simply Exclude plugin

You can download the plugin either through the WordPress console using search, or from official WordPress website.

After activation, it will already work and you don’t have to configure it. But still, I recommend making some changes to make working with its functions more enjoyable.

After installation and activation, we immediately go to its settings.

Initially, in the plugin settings everything is set so that when the checkbox is activated (we’ll look at it below), the required pages (posts, categories, pages) will be marked as “allowed for display”. Thus, for each type of page you will need to check all the checkboxes so that everything is displayed.

It would be more logical to set this option when, by activating a checkbox (for example, for the main page), it will mark an article or something else as prohibited for display.

In the settings there are 3 tabs that are designed to configure settings for different types of pages:

  • Taxonomies (taxonomies) - settings for the functioning of the plugin in sections of the WordPress admin panel: categories and tags;
  • Post types - for post types: articles and pages;
  • Users - settings for users.

Now I will give a screenshot of the settings of the first tab (taxonomy) and explain the parameters that should be set.

  • In the first block of settings "Active" you need to set the "Active" checkbox so that the plugin adds the necessary checkboxes to disable display in categories or any other types of pages;
  • In the second block we set all the parameters opposite the “Exclude” option. It means that if the checkbox is enabled in the editor of each type of page, it will be hidden from display and new articles will be open for display by default. If you set the "Include only" parameter, then by checking the checkbox, entries will be open for display and new articles will be hidden by default. If the second option “Include only” is selected, then after installing the plugin all entries will be hidden and you will need to set the “Exclude” option;
  • In the "Show/Hide" block, set the "Show" parameter so that the necessary checkboxes are displayed in each type of page for the ability to disable or enable display.

The same parameters should be entered on the remaining 2 tabs of the Simply Exclude plugin settings.

For example, here is a screenshot of the "Post types" tab.

Of course, you can disable the functioning of some functions, for example, on the first tab you can deactivate the plugin for categories if we are not going to exclude all posts of an entire category.

Now about the work of the plugin itself. When you have set the necessary parameters, you can go to the editor for each type of post and put check boxes next to those pages where you want to exclude their display.

For example, to set the settings for posts, you can go to the editor of the required article or through the all articles item. Both there and there will be the necessary check boxes. In the editor, in the right column there will be a “Simply Exclude” block containing 4 checkboxes for hiding posts and pages:

  • Archives - categories and archives;
  • Feeds - RSS feeds;
  • Front/Home - main;
  • Searches - search.

By checking the required checkbox, you can hide the post from a certain type of page.

In the WordPress admin panel "All posts" opposite each material in a new column called "Simply Exclude show" there will also be these 4 checkboxes. The same goes for rubrics. A new column with all checkboxes will be added.


That's all for this plugin. By installing it, you can very quickly and flexibly change the display parameters of specific posts or entire categories without interfering with the template files.

Exclude Categories plugin

The plugin is intended only to hide an entire category from the main page and RSS feed. Since this option does not require much flexibility (I created a category once and added articles there), I recommend implementing the exclusion of an entire category using code (see point 2).

You can download the plugin using the button below.

After installing it, go to settings (Settings - Exclude Category) and select the required category to exclude it from the main page.

Excluding all entries in a category is a common option. But I see a drawback in it, since the site has to publish a lot of articles to attract search traffic, and they will all be on different issues of the same topic.

But shoving various materials into one category is not very good.

This option is also often used when actively selling links on a website. The owner creates a section and publishes all articles with sales links in it. And this is also not very good, since now webmasters require placing a link in one of the main sections of the site so that it is at least slightly clickable and has an effect during promotion.

That's it, guys, on this note I am ending this detailed manual, which should be useful to you if you came to the right place for this article. I hope everything goes well for you.

I wish you a wonderful mood and a wonderful day. See you.

Best regards, Konstantin Khmelev!

    How can I limit the display of a certain block only on the main page if it is not in home.html?

    Actually, subject. Design theme "DEFAULT". If you remove the code below from index.html, then, naturally, the sidebar is removed from the entire site. At the same time, there remains empty space for it....

    Good afternoon Tell me how to display subcategories, categories https://diokom.ru/resheniya/ in the same form (in rectangles), but without products, only on the main page. Topic suprime/

    There is a solution

    Hi all. I have been suffering for days now with the block being displayed only on the main page. I tried different options, sometimes it displays only on the main page of the store, sometimes it displays on all pages except the store. I just started working with the system, I still don’t understand everything. There is...

    Many options https://site/2426/funktsiya-proverk......

    Hello, dear programmers! The following task is required - All products on the main page with loading using the "show more" button or at least page by page. If you use the built-in bestsellers list - standardly on the main 8...

    There is a solution

    I connected the SSL certificate. In .htaccess it is written like this: RewriteCond %(HTTPS) offRewriteRule ^(.*)$ https://%(HTTP_HOST)%(REQUEST_URI) RewriteEngine OnRewriteCond %(HTTP_HOST) ^www.site.com$ RewriteRule ^( .*)$ https://site.com/$1 In...

    I don’t understand where the index.php file with the entire body of the online store is located? To change contact details on the main page. I found only one such file in the root directory of the site, but it only contains the site title.

    Hello! In order to install the slider, the instructions describe the following steps:===cut===You can place the slider on any type of page (showcase, catalog, store information page, etc.). To do this, write the line (* in...

    Actually, the problem is that I’m trying to display the authorization form (Template “Easy to Buy”) on the main page, everything seems to be fine, but when I click on the “login” button, nothing happens. I figured out the code (thanks...

    How can you make sure that the main page displays products from all of them, and not just from bestsellers, randomly?!

    Pull the PSD mockup onto the home page

    Website on Webasyst Shop-Script 306 ✨You need to create a ready-made PSD layout only for the main page of the site, taking into account adaptive mobile. versions for the website www.guarana.in.ua I will send a layout upon request Payment upon delivery, possible in 50/50 installments after the first part of the work....

    Hello, here is a problem: on the main page of the store the images are not displayed in the slider. According to the template developer, this slider is implemented using standard tools of the PHOTO application. I use the template "Buy...

    Good afternoon, colleagues! How can I make sure that all product reviews are displayed on the main page? Now it looks like this: - only two reviews out of hundreds.

    Expand the standard search bar, put a product filter on the main page or display a product category with a filter

    Expand the standard search bar, put a product filter on the main page or display a product category with a filter. Show how to make it possible to search for real estate in the filter by distance to the sea, currently showing...

    Hello! On the main page of the design theme “Hypermarket” 1.2.0 (hypermarket) the stock balances are not displayed. And stock balances are displayed only if you directly enter the product!!! How can this be fixed?

    +1

    Display the product filter on the main page

    The site is motoshiny.rus, at the top of the main page there is a strip with the main categories. I want the filter to be below, parallel to this strip with categories. In width, it should not extend beyond the edges of the banner above which it will be...

    I want to make a store that has very few items. Therefore, the main page is enough for me to display all product categories on it. I just can't figure out how to do this. I'd be grateful for any advice.

    It is necessary that the path map and the title are not displayed on the main page, but at the same time be available on other pages. Thank you

    Good afternoon, I was faced with the need to write CSS rules for the main block in the header of the site #header screenshot, with the condition that the rules will be applied only on the main page. (Theme based on the standard “Sidebar”) In many cms...

    There is a solution

    Hello. In general, the question is in the title. How to hide a block only on the main page of the site.

    (if isset($frontend_homepage))Your code(/if)This will not work for all applications: only for the store and "Hub", as far as I know. For example, in "Site" there is no frontend_homepage variable. More universal options will be as follows (at the same time taking into account possible UTM tags in page URLs - when checking the page address, we discard GET parameters)://Only on the main page (if $wa->currentUrl(false, true) == $wa_url) code on the main page(/if) //Everywhere except the main page (if $wa->currentUrl(false, true)...

    Rat

    There is a solution

    Greetings! The blog is divided into 2 parts - “news” and “articles”. Tell me how to display the latest posts only from the “news” section on the main page? Uses standard...

    There is code in the block itself ($latest_posts = $wa->blog->posts()) if you specify a number inside $wa->blog->posts(1) - the id of the blog, then only posts from it will be selected.

    How to make sure that products are on the main page of the store? I have it written there "