[Support request] How to get Rank Math to integrate a Hook of “elements”

Home Forums Support [Support request] How to get Rank Math to integrate a Hook of “elements”

Home Forums Support How to get Rank Math to integrate a Hook of “elements”

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1589885
    David Glass

    How to get Rank Math to integrate a Hook of “elements” as part of an input? For example, a paragraph embedded via a Hook from GeneratePress to an entry cannot be parsed by Rank Math

    #1589925
    David
    Staff
    Customer Support

    Hi there,

    i assume that RankMath only parses content that is within the editor or has specific schema.
    You would ned to ask RankMath how to parse elements that are hooked in.

    #1590781
    David Glass

    Yes!! Thank You David!! …how make Rank Math to parse elements that are hooked in??

    #1590808
    David Glass

    Example: How to???

    wp.hooks.addFilter( ‘rank_math_title’, ‘plugin-name’, callback_function_to_fetch_title ) // This will hook into title analysis data.

    And

    wp.hooks.addFilter( ‘rank_math_content’, ‘plugin-name’, callback_function_to_fetch_content ) // This will hook into content analysis data.

    #1590809
    David Glass

    Were AND How insert this scripts??

    #1591089
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Those filters are for the block editor content itself.

    Are you trying to use Rank Math in Block Elements, or Hook Elements?

    #1592500
    David Glass

    Hi Tom thanks!!
    I need Rank Math to admit and relize its work in the texts that I have integrated through a hook as it does with a standard paragraph, in order to obtain a Rank Math calculation as a whole of both, the content paragraphs and the Hook paragraphs inserted to that entry.

    #1593494
    Tom
    Lead Developer
    Lead Developer

    When you say Hook, do you mean the regular Hook Element (not the block editor)?

    If so, there would have to be a way to integrate Rank Math with a regular textarea custom field – not sure if that’s something they support?

    #1593514
    David Glass

    Thanks for paying attention to me! Yes, when I say “Hook” I mean the element to create “hooks” of the template “Generatepress”. But it could be any plugin that performs the same function as an example: create a text field that will be displayed according to its filter in certain wordpress inputs.

    It is important to avoid overload of work in large sites. But Generatepress does not integrate them to Rank Math, that is not good because it does not cooperate with SEO.

    I’m still looking for a way to make peace between Generatepress and Rank Math but it’s still out of my reach (I’m not a hacker ๐Ÿ™ …

    I’ve seen that Yoast has a plugin to consolidate hooks but I don’t want to migrate to Yoast.

    I’m sorry, English is not my language, but I will learn ๐Ÿ™‚

    #1595102
    Tom
    Lead Developer
    Lead Developer

    GeneratePress tries not to integrate with any third-party plugins by default, as that is how bloat starts to creep into a theme.

    In this case, does Rank Math make it possible to integrate their plugin with a custom field textarea?

    Ideally, you shouldn’t really be adding a ton of content into your Hooks, so SEO shouldn’t be an issue. Your content should be in your regular post content area.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.