Breadcrumb Issue and suggestion

edited February 2019 in Blog
PROBLEM:
In the breadcrumb, the link is set to the server's domain name instead of the value set for that WordPress site. This is problematic in multisite configurations because multisites have different domains and is not the same as the SERVER_NAME in the server configuration.

SOLUTION:                           
Use WordPress's built in home_url() function to get the scheme and domain.                      
                            
    Step 1) Open file: /blog/wp-content/themes/betheme/functions/theme-functions.php
    Step 2) Locate the section of the code that declares the "function mfn_current_URL"         
    Step 3) Insert this line to return the value from the home_url()                        
                            
                  return home_url().$_SERVER[""REQUEST_URI""];"                 


SUGGESTION:
Unfortunately, the above is temporary because new BeTheme update will overwrite this. I hope new update fix this. 

Comments

Sign In or Register to comment.