Skip to main content

How do Facebook posts get into Google search?

  How do Facebook posts get into Google search? How do Facebook posts get into Google search? My customers ask me this question, since the options are different and it is impossible to find a clear answer to this, I decided to share my experience. Since I have, in addition to my personal page, where by the way I do not post very often. I also have a business page and a group, here all the news links from the site get almost immediately. What needs to be done first on the site, I recommend markup for Facebook, also install Pixel, although the latter is more for advertising, but you should not disdain it. Needless to say that the link to your page or group in FB must be on the resource, for example, in the footer of the site like mine. I forgot to say that the resource should not be very young in time, that is, a little proven. It is desirable to have subscribers on your Facebook page, and at least a few likes on the posts. Well, the age is also important, like the site. My group is ...

Why a website needs a dark version, convenience for users

 

Why a website needs a dark version, convenience for users

Have you ever wondered how to make a dark theme for a website? If you have, then this is right, because in order for the user to stay on your website even at night and continue reading the content, you need to create all the conditions for him. Imagine a situation, there is a light-colored website, it is convenient for reading during the day, but at night in the dark, its lightness eats out the eyes, this is the main problem that creates discomfort at night, today we will try to solve this problem and create all the conditions for comfortable reading of the site even at night.

The solution that we will use is not a clutter for the site code, just a few lines of styles, a small script and a button to turn on / off the dark version.

Installing the Dark version for the site will consist of 3 steps:

1. Set the following styles in the CSS style sheet:

html .dark * {
background-color: #1d1c1c !important;
color: #fff!important;
}

2. Install in the global block at the bottom of the site or just before the </body> tag the script:

<script type="text/javascript">
$(function(){
var gun = localStorage.getItem('name') === null || localStorage.getItem('name') === 'false' ? false : true;
$("body").toggleClass("dark", gun);
$(".change").on("click", function() {
$("body").toggleClass("dark");
var gun = $('body').is('.dark');
localStorage.setItem('name', gun);
});});
</script>

3. The last point is to set up a button to turn on/off the dark version, set up the button in a convenient place in the template:

<a type="btn" class="change"><img src="/img/darkthem1.png" alt="Dark theme for the site" title="Dark theme for the site" style="max-width: 20px; margin-top: -3px; cursor: pointer;"></a>

That's it, there's nothing complicated about it, just change the background to dark and make the text white. You can see the result of the dark theme by clicking on the light bulb or crescent icon in the site header.

source of information

Comments

Popular posts from this blog

Why is it worth having a branded email?

  Why is it worth having a branded email? An email address on your own domain, that is, name@your_site. And now, in order. I came across confirmation from Google of my business for one company. And the solution to the issue of urgent addition to the map was email. But as usual, no one knows anything, they have a domain, but there is no website as such.  So, what I've done for my own website? I created a resource, or rather, parked a domain and connected mail. The whole procedure took about an hour. We were able to receive the code from Google via branded mail and the company was verified. By the way, they often request access because they need to declare ownership of an existing point on the map. And when it is not possible to do this via phone. Although this is also not a problem, now you can purchase the required number from the operator on the website, unless of course it is busy. In conclusion, I would like to say that some servi  ...  Read more »

Why should a webmaster have several Internet browsers?

  Why should a webmaster have several Internet browsers? Sometimes I see how people who create websites have one for surfing and work. Of course, more often these are beginners, but still. Starting with the basics, an explanation of why not only chrome, the latter is often the main one and naturally all Google services are installed in it. Including the webmaster, now called Google Search Console. So, when you visit sites, a hint is displayed in your browser, you have visited this page many times. That is, when working on a client’s resource and making thematic queries, this often comes up. Yes, you can open it in incognito mode, but from experience I will say this, there is a difference in search results for certain queries in browsers. It’s small, but it’s definitely there, why you need to ask the developers, who of course won’t answer you. There are never too many Internet browsers, and even more so for a person connected with websites. And this is necessary not only to check th...

How to help a client with a website, tips at the initial stage?

  How to help a client with a website, tips at the initial stage? How to help a client with a website, tips at the initial stage? More and more people now want to get not only a good resource, but also a detailed consultation. I have long understood for myself that in order to retain a customer, you need to help him a lot to retain him. Since there are a lot of people who want to make websites, but here's another question. Factors from choosing a domain to the final value, that is, appearing in the search for the right words. They want to warn you about the popularity of the latter. The mistaken belief that people will immediately run to buy goods or services from you, in addition to finding a site, your work also matters. I always warn clients that the first places are based on the fact of sales. By the way, some disappear after such sayings, apparently they get scared, in my experience there were a couple of customers who complained that it was bad, although they understood that ...