Assistance Needed with Brand Pages Causing 404 Errors

This topic has 4 replies, 3 voices, and was last updated 1 days, 15 hours ago ago by Jack Richardson

  • Avatar: Gianniskon
    Gianniskon
    Participant
    February 19, 2025 at 23:54

    . I’ve been working on creating separate static brand pages for each of our brands, but I’m running into a persistent issue: every time I try to access these pages, I end up with a 404 error. Here’s a quick summary of what I’ve done so far:

    • Added custom code in the functions.php file to generate unique brand pages for each brand.
    • Checked and refreshed permalinks to ensure the changes would take effect.
    • Verified that no other plugins or custom code might be interfering.

    Despite these steps, the 404 error remains. I’m wondering if there’s an additional configuration or template adjustment in the theme files that I might have overlooked—especially something that needs to be done beyond just the functions.php edits to properly register and display these brand pages.

    Could you kindly let me know if there’s a specific best practice for setting up custom page templates or if there’s another file (e.g., a custom post type template, archive file, etc.) that needs to be updated for these brand pages to resolve properly?

    Thank you so much for your help, and please feel free to let me know if you need any more details or code snippets. I appreciate any guidance or insights you can provide. here is the page https://www.kontopyrgos.com.cy/brand/samsung/

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2025 at 08:01

    Hello, Gianniskon,

    Thank you for reaching out to us.

    Ensure Proper Registration of Custom Rewrite Rules:
    If you are using custom rewrite rules in your functions.php file, make sure they are correctly registered and flushed. You can try adding the following after registering your custom post type or taxonomy:

    flush_rewrite_rules();
    

    After adding this, go to Settings > Permalinks in your WordPress dashboard and simply click “Save Changes” to refresh the permalinks.

    Check for Conflicting Plugins or Theme Functions:
    Temporarily disable other plugins to see if any of them are interfering with the brand page functionality.
    If you are using a child theme, try switching to the parent theme to check if the issue persists.

    Debugging with WP_DEBUG:
    Enable debugging in your wp-config.php file to check for any errors:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    

    Then, check the wp-content/debug.log file for any errors related to the brand pages.

    If the issue persists, please provide us with temporary wp-admin and FTP access, so we can take a closer look.

    Warm Regards,
    The 8Theme Team

    Avatar: Gianniskon
    Gianniskon
    Participant
    February 20, 2025 at 10:31

    hello

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 20, 2025 at 16:34

    Dear @Gianniskon,

    We hope you are doing well.

    It appears that after modifying the permalink structure for product taxonomies, it is also necessary to adjust the permalink structure for the brand base accordingly. To ensure consistency, we have set the brand permalink structure as follows: https://prnt.sc/BZzX5caa4hKu —analogous to the category structure (using the letter ‘c’), we have designated the letter ‘b’ for brands.

    As a result, the brand archive pages are now displaying correctly: https://prnt.sc/F6UR4qhPDPHb. Kindly review the changes at your convenience.

    Should you have any further questions or require additional assistance, please feel free to reach out to us via our support forum.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.