AVOID LINK POST TITLES

  • Author
    Posts
  • #71026

    Good Morning,

    My question is if it`s possible to avoid the permanent link in post titles.?

    How can I do it?

    Best regards

    Website: www.ondaplanasantacruz.com/contacto

    #71072
    Zed
    Cryout Creations mastermind

    You can do that by customizing the content/content.php file to remove the link markup from the title code:

    
    <?php the_title( '<h2 class="entry-title"' . cryout_schema_microdata( 'entry-title', 0 )  . '>', '</h2>' ); ?>
    

    Copy this file to the child theme (in the same content/ folder) and edit it there.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #72282

    Hello Zed,

    I have tried insert your code in the content/content.php of the child theme and don’t run well.

    I’d like that in this page: https://www.ondaplanasantacruz.com/especiales/ we cannot click on the titles Por example: FIESTA DE LA RADIO.2º ANIVERSARIO. 2018 or VENDIMIA 2018

    Thak you in advance Zed.

    Best regards

    #72339
    Zed
    Cryout Creations mastermind

    I interpreted your ‘avoid’ expression in the initial message as the wish to remove the link functionality from the post titles. That is what the code customization does.

    Were you looking to achieve something else?


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
    #72350

    My apologies, my first message was not clear and my english is not peefect.

    I want to avoid the permanent link in post titles only in this page:https://www.ondaplanasantacruz.com/especiales/ we cannot click on the titles Por example: FIESTA DE LA RADIO.2º ANIVERSARIO. 2018 or VENDIMIA 2018

    However, I tried to insert your code and dont work correct avoiding permanent link in post titles

    Best regards

    #72658
    Zed
    Cryout Creations mastermind

    The code edit I indicated applies to all posts and doesn’t apply to any (static) pages.

    Pages do not normally appear in lists where their titles are clickable links.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘AVOID LINK POST TITLES’ is closed to new replies.