How to Delete Page Titles and Descriptions from Pages on Shopify

Solved

How to Delete Page Titles and Descriptions from Pages on Shopify

FREEDS1
New Member
4 0 0

Hello! I am looking to hide the page titles and description underneath the title from our men's and women's pages without affecting our SEO. I have tried several suggestions that the Shopify community recommended (like adding the following code at the bottom of our theme.css.liquid code. 


.main-page-title {
display: none !important;
}

 

I have been in touch with Shopify's customer service and PageFly's customer service. No one has been able to help me. The theme we are using is Impulse. 

 

Any help or advice would be greatly appreciated. 

 

Accepted Solution (1)

brisk_code
Shopify Partner
81 10 14

This is an accepted solution.

Hi There, I installed Impulse theme in my store and it worked for me:
Go to Code Editor an search for layout/theme.liquid not assets/theme.css.liquid and paste it approx in line 14,15,..
Guide image:

brisk_code_0-1738375628356.png

 


Code:

{% if page.handle == "men" or page.handle == "women" %}
    <style>
        .page-content{
          display: none !important;
        }
    </style>
{% endif %}

in Addition, code only affect on women and men pages and other pages will be visible, if you want that all the pages should be same so just use this code in same address:

<style>
        .page-content{
          display: none !important;
        }
    </style>



Best
Fazil Nusrat from Brisk Code

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

View solution in original post

Replies 11 (11)

pawankumar
Shopify Partner
679 98 122

Hi @FREEDS1 
Please share store url and page link as well where you want to hide it and please share password as well if store is password protected
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
FREEDS1
New Member
4 0 0

Hello! The Store URL is: https://freeds.com/

 

The page we are looking to hide the page titles on are: https://freeds.com/pages/women and https://freeds.com/pages/men

 

The site is not password protected 

brisk_code
Shopify Partner
81 10 14

Hi @FREEDS1 
use this code:

.page-content{
  display: none !important;
}
Best
Fazil Nusrat from Brisk Code

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!
pawankumar
Shopify Partner
679 98 122

Hi @FREEDS1 
Put this code in theme.liquid before body closing tag

{% if page.handle == "men" or page.handle == "women" %}
<style>
.page-content {
   display: none;
}
{% endif %}

Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan
FREEDS1
New Member
4 0 0

I don't have a section called theme.liquid. I have a called "theme.css.liquid." I put it in the bottom of our code, and it's still not working 

pawankumar
Shopify Partner
679 98 122

theme.liquid is base layout in shopify, If you search for theme, you will find that in code editor
Thanks!

- Need a Shopify developer? Chat on WhatsApp +91-9467121281
- Coffee Tip: Buymeacoffee  | Email: thepkpawankumar@gmail.com
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Best regards,
Pawan

DaisyVo
Shopify Partner
3782 412 498

Hi @FREEDS1 

Please share store url and page link as well where you want to hide it and please share password as well if store is password protected
Thanks!

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
DaisyVo
Shopify Partner
3782 412 498

Hi @FREEDS1 

I hope you are well. You can follow our instructions below:


1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ

 

Here is the code for Step 3:

{% style %}
{% if canonical_url == "https://freeds.com/pages/women" %}
main#MainContent > section:nth-child(1) {
display: none !important;
}
{% endif %}
{% if canonical_url == "https://freeds.com/pages/women" %}
main#MainContent > section:nth-child(1) {
display: none !important;
}
{% endif %}
{% endstyle %}



DaisyVo_0-1738422174479.png

 

DaisyVo_1-1738422184363.png

 

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

brisk_code
Shopify Partner
81 10 14

This is an accepted solution.

Hi There, I installed Impulse theme in my store and it worked for me:
Go to Code Editor an search for layout/theme.liquid not assets/theme.css.liquid and paste it approx in line 14,15,..
Guide image:

brisk_code_0-1738375628356.png

 


Code:

{% if page.handle == "men" or page.handle == "women" %}
    <style>
        .page-content{
          display: none !important;
        }
    </style>
{% endif %}

in Addition, code only affect on women and men pages and other pages will be visible, if you want that all the pages should be same so just use this code in same address:

<style>
        .page-content{
          display: none !important;
        }
    </style>



Best
Fazil Nusrat from Brisk Code

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!
brisk_code
Shopify Partner
81 10 14

@FREEDS1 
Have a look on my comment, that will work 100%

Best
Fazil Nusrat from Brisk Code

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

FREEDS1
New Member
4 0 0

This worked! Thank you!