Skip to main content

Deprecated themes enabled Classy, Stable ?

Submitted by manoj on 27 May 2023

Table of Contents

  1.  Stable
  2. Classy

Deprecated core themes cannot be disabled on the "Appearance" tab because they are hidden, please follow the steps below.

Back to top

1)  Stable

Step1: open stable.info.yml file

Step2: remove  below lines

hidden: true  
lifecycle: deprecated  
lifecycle_link: https://www.drupal.org/project/drupal/issues/3308890


Step3: Go to Appreance   
Now you can see uninstall option infront of your theme.

Step4: uninstall it and clear cache.

Step5: Congrats

Back to top

2) Classy

Step1: open classy.info.yml file

Step2: remove  below lines

lifecycle: deprecated  
lifecycle_link: https://drupal.org/node/3223395#s-classy

Step3: Go to Appreance   
Now you can see uninstall option infront of your theme.

Step4: uninstall it and clear cache.

Step5: Congrats

Back to top
Question Category

How to apply patch in Drupal?

Submitted by manoj on 16 May 2023
Back to top

1) Apply patch Using  git

Step1: Download the patch file mannuly/Use curl to download /Use wget to download the file.

Step2:  git apply --index [patch-name].patch

Back to top

2) Apply a Patch Using Composer

Back to top
Question Category

Best breakpoints based on widths of devices

Submitted by manoj on 19 January 2023

media query breakpoints. 

@media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ }
@media (min-width:481px)  { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ }
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
Question Category

How to fix Call to deprecated function file_create_url() in Drupal 9 &10

Submitted by manoj on 30 December 2022

Table of Contents

  1. Before
  2. After
Back to top

1) Before

Back to top

2) After

file_create_url($uri)

\Drupal::service('file_url_generator')->generateAbsoluteString($uri)

drupal_get_path('module', 'node')

\Drupal::service('extension.list.module')->getPath('node')

drupal_get_path('theme', 'seven')

\Drupal::service('extension.list.theme')->getPath('seven')

drupal_get_filename('module', 'node')

\Drupal::service('extension.list.module')->getPathname('node')

drupal_get_filename('theme', 'seven')

\Drupal::service('extension.list.theme')->getPathname('seven')

drupal_get_filename('theme', 'seven')

\Drupal::service('extension.list.theme')->getPathname('seven')

Back to top

What is SEO Backlink?

Submitted by manoj on 8 November 2022

A SEO Backlink is Page links from one website to another website means  when one website links to another with an anchor text.

Example: If Site A has a external link to Site B means Site B has a backlink from Site A. Therefore, this is a backlink to the target Site i.e. Site B.

There are two things related to Backlink 

1. Create a Backlink : 

2. Earn a back Backlink :  

In this post we will discuss in details .but before this lets understand more about Backlinks.

Back to top
  • backlinks can help you PageRank higher in search engines such as Google and Microsoft Bing.
  • Backlinks is a kind of indicator of how popular your website is?
  • Google and other major search engines consider backlinks as specific page “votes”.
  • votes tells search engines:  specific content is valuable and very useful.

Backlinks are basically votes from other websites

Earning backlinks is an essential component of off-site SEO.

 

Back to top

not all backlinks are equal

Quality backlinks

  • Backlinks come from trusted, authoritative websites
  • Backlinks Include your target keyword in the link’s anchor text
  • The Site which linking  to you is related to your Site
  • Backlink is a "Dofollow" Link
  • Backlink is from a domain that hasn’t linked to you before
  • Webmention technique comes under quality backlinks 

Low-quality

Back to top

Imagine your website  has 2  different web pages and each page has backlinks from  different external domains.

Imagine 

  • Page X has 2 backlinks
  • Page Y has 1 backlinks

If Both 2 pages is about the same topic, Page X would rank higher than Page B.


Since  Page A  has Two times as many links than Page B . So the link from Page A is more valuable than the link from Page B because it has a higher authority.

3.1) How to get backlinks from high-authority sites?

Best way to get backlinks from high-authority sites is to write quality content for your Site.

Follow backlinks: A follow link does  pass link equity

no follow backlinks: A no follow link does not pass link equity

 

For this we can use many  link building strategies as listed below.

  • Blog Commenting
  • Directory Submission
  • Forum Posting
  • Social Bookmarking

  

Back to top

Link Explorer

Back to top
Question Category