edugsdf profile

Home Forums edugsdf

Forum Replies Created

Viewing 5 posts - 21 through 25 (of 25 total)
  • Author
  • edugsdf
    Participant

    You do not understand me. Let’s do it by steps.
    Following the correct SEO specification, the next TAG to be used after H1 is H2.
    See here: https://yoast.com/headings-use/

    In breadcrumbs it should not have TAG H1. Because in custom post type that are not building for you, the page will have two h1 TAGs.
    See the source code for this page: https://jevelin.shufflehound.com/product/basic-t-shirt/

     

    For this reason I want to know how to report this while developing make the following changes:
    1) Remove the TAG H1 from the breadcrumbs.
    2) Change the H3 TAGs of the custom post type portfolio to H1

     

    Do you understand me now?

     

    edugsdf
    Participant

    Missing one more parameter. Here are the two complete parameters:

    ‘with_front’ => false,
    ‘hierarchical’ => true,

     

    edugsdf
    Participant

    Searching more closely, I discovered that you register custom post type in the unyson framework.

    So I made a small change there and it worked. Attached follows the screen where I made the change.

    But now I have a concern …. when there was a new update, I will lose all this.

     

    What do you suggest me ?

    Attachments:
    You must be logged in to view attached files.

    edugsdf
    Participant

    The plugin did not solve the problem. But he pointed out the cause.

    See in the attached image, the markings in blue frame.
    The Custom Post Types “product” creates the link correctly because it uses with_front to false.

    See, fw-portfolio uses with_front to true. And for that reason it adds “/ blog /” to the URL.

    See attached image of woocommerce, where in the source code it uses correctly.

    Just this correction. But I did not find it in your source code to make this change.

    Can you tell me how to fix this?

    Attachments:
    You must be logged in to view attached files.

    edugsdf
    Participant

    Hello!
    I already changed. See the attached screen for the previous question. And that part is working right.

    Custom post type inherits the permantente links from the common settings.
    In my common settings it looks like this:
    /blog/%postname%/

    For blog is correct, because the link in the browser looks like this:
    http://mysite/blog/name-of-post

    But for Custom post type portfolio the URL in the browser looks like this:
    http://mysite/blog/roteiro/name-of-post

    I want to remove the “/ blog” when it is custom post type. And final URL should look like this:
    http://mysite/roteiro/name-of-post

     

    I was researching how to change, and found this link:

    https://paulund.co.uk/flush-permalinks-custom-post-type

    But in the source code of thema I did not find where does the post type record …. that should be so “register_post_type”.

     

    Another solution is to use the post_link filter to modify the links, but for this I will need to include code in functions.php and with certainly in a thema update I would lose all the code.

     

    How can you help me?

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 21 through 25 (of 25 total)