Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #344721

    Hi,

    I know we have always had problems with the blog header (h1). In the old theme, clicking on the blog header would bring you to the home page instead of the blog. Now if I am on a post and I click on the h1 ‘blog’ header it gives me a 404 and the url ends in:

    “_your_custom_blog_url_goes_here_”

    I’m not sure where this is getting set but of course it’s not picking up the blog page we have set. I do have the blog set to the correct page in our theme settings. Is there somewhere else I need to set it too?

    Thanks.

    #344902

    Hi waterwalk!

    What is your permalink setting set to? Let’s try the following,

    1. Update Enfold to 3.0.2, your currently using 2.9.2.
    2. Deactivate all plugins.
    3. Delete your .htaccess file and then set your permalinks to the default settings and save. Pay special attention to any messages that WordPress gives you after saving.

    If your still having issues after doing the above then send us an admin login and we’ll take a closer look. Be sure to mark the reply as private.

    Best regards,
    Elliott

    #345048
    This reply has been marked as private.
    #345707

    Hey!

    Yes, the latest version is 3.0.2 but you’re using 2.9.2. Please download the latest version from your themeforest account then update the theme via FTP. Please refer to this link for more info: http://kriesi.at/documentation/enfold/updating-your-theme-files/

    Actually, the theme version, I think, is not fully related to the issue but you should upgrade nevertheless. Did you add any custom filters (avf_title_args) on functions.php? Something like:

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if ( $args['title'] == 'Blog - Latest News' )
        {
            $args['title'] = get_the_title($id);
            $args['link'] = http://www.yoursite/_your_custom_blog_url_goes_here_;
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    Regards,
    Ismael

    #349836
    This reply has been marked as private.
    #349845

    I’m going to make this a public response since others might run into this issue. I just want to reiterate that I went through all the steps you outlined in your previous note and that did not fix the problem.

    I couldn’t wait any longer because of all the 404s it’s causing with our google account. So for the time being I have gone in and hard-coded the correct url into ‘index.php’ and ‘single.php’. I’m no php guru by any means but it’s curious to me that both of the statements on these templates are written as:

    if(avia_get_option(‘frontpage’) && $new = avia_get_option(‘blogpage’))
    {
    $title = get_the_title($new); //if the blog is attached to a page use this title
    $t_link = “_your_custom_blog_url_goes_here_”;
    $t_sub = avia_post_meta($new, ‘subtitle’);
    }

    Since “_your_custom_blog_url_goes_here_” is in quotes, the page is being written exactly as it’s programmed to do which is to put that exact string in as the url. Shouldn’t that be a variable instead?

    I’d prefer that the correct url not be hard-coded in and that it work as it’s supposed to so if you have other suggestions to get this working I’d appreciate it. Thanks.

    #350372

    Hi!

    Thank you for the update. I’m sorry but you didn’t answer my question. My question is, did you add any kind of custom code like the one I posted above on functions.php? That’s the code that is causing the issue. You can replace the code with this:

    add_filter('avf_title_args', 'avf_title_args_url', 10, 2);
    function avf_title_args_url($args,$id)
    {
            $args['title'] = get_the_title($id);
            $args['link'] = get_the_permalink($id);
            $args['heading'] = 'h1';
    
        return $args;
    }

    Best regards,
    Ismael

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