Code Monkey home page Code Monkey logo

Comments (16)

MaximPro avatar MaximPro commented on July 30, 2024 5

Please add this function to the customizer finaly - an option to be able to exclude all titles at once.
Better this would be even the default setting.
Everyone waits for this, because no one wants to use extra hooks - no normal user does that and the catch is that elementor is primary developed for normal users.
I will add the hook, however it would be still very useful!

from hello-theme.

cobbman avatar cobbman commented on July 30, 2024 3

@yaniv691 I know you said you don't want to use CSS, but that's the quickest way to do this globally, without adding bloat to the theme (which I assume is meant to be lightweight).

It's easy to go into WP Customizer and add global CSS:

.entry-title {
  display: none;
}

from hello-theme.

yaniv691 avatar yaniv691 commented on July 30, 2024 3

@BigWilliam The reason I want to avoid CSS is because I don't want multiple h1 tags (one inserted by the theme and another by me). Even through the user will only see one heading, this is bad practice in terms of accessibility (specifically screen readers) and SEO. Also, I don't want unnecessary HTML markup on the page which cannot be seen.

The theme supposed to be lightweight but should also provide some basic filters to customize some critical parts.

from hello-theme.

ashkan-ahmadi avatar ashkan-ahmadi commented on July 30, 2024 2

Add the following line to your functions.php to hide the title from all the pages on your website:

add_filter( 'hello_elementor_page_title', '__return_false' );

from hello-theme.

nuritsha avatar nuritsha commented on July 30, 2024 1

@RomainJM - thank you for pointing that out. Will be included in the next release.

from hello-theme.

badcat avatar badcat commented on July 30, 2024

I'm interested too... Doesn't clicking the Gear icon to get to Page Settings allow you to Hide the Title for pages? Or did I misunderstand?

h1

from hello-theme.

yaniv691 avatar yaniv691 commented on July 30, 2024

@badcat Your suggestion is correct, but it's rather tedious to do on a lot of page. It would be great to have a global setting (or filter like @nuritsha commited to her branch ;-) )

from hello-theme.

nuritsha avatar nuritsha commented on July 30, 2024

Hi @yaniv691, @badcat and @BigWilliam,

Thank you for your suggestions,

Please take a look at the new filter introduced in version 2.1.0:
'hello_elementor_page_title',
You can add it to your functions.php and prevent the theme from printing h1 tags throughout the site, just follow the instruction in the theme's readme.

from hello-theme.

yaniv691 avatar yaniv691 commented on July 30, 2024

Thank you very much @nuritsha. This is exactly what I needed - simple hooks.

from hello-theme.

RomainJM avatar RomainJM commented on July 30, 2024

There is a problem now, we have a empty header.

Can this filter include header too ?

from hello-theme.

philmatt avatar philmatt commented on July 30, 2024

+1

from hello-theme.

All44 avatar All44 commented on July 30, 2024

+1

from hello-theme.

Dubidubiduu avatar Dubidubiduu commented on July 30, 2024

Add the following line to your functions.php to hide the title from all the pages on your website:

add_filter( 'hello_elementor_page_title', '__return_false' );

And then readd that everytime the themes get an update? No, it needs to be a setting.

from hello-theme.

badcat avatar badcat commented on July 30, 2024

And then readd that everytime the themes get an update? No, it needs to be a setting.

Perhaps adding that to a child theme functions file makes more sense.

from hello-theme.

ashkan-ahmadi avatar ashkan-ahmadi commented on July 30, 2024

Add the following line to your functions.php to hide the title from all the pages on your website:
add_filter( 'hello_elementor_page_title', '__return_false' );

And then readd that everytime the themes get an update? No, it needs to be a setting.

Add it to your child theme's functions.php. The other option is to change the theme's version to a huge number like 99999 so that it will never update. Alternatively, you can create a shell theme yourself. It's not difficult

from hello-theme.

badcat avatar badcat commented on July 30, 2024

https://elementor.com/blog/wordpress-child-theme/

from hello-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.