• kicia

    (@kicia)


    I have a website based on two themes.
    One of them is set only for a blog page (which is not a home page) and I would like to change a site title link for this theme – I’d like it to link to itself, to the blogpage, not the homepage, as pages on the basic theme.

    I guess I need to do it in header.php file of the blog theme, but I can’t find any working solution, although I looked for it in WP Codex.

    The code responsible for site title for the blog theme looks like that:

    <div id="site-title" style="color: #09f;">
    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"
     title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>
     blog" rel="home"><?php bloginfo( 'name' ); ?> blog</a></div>

    Could you please tell me what to change there?

Viewing 1 replies (of 1 total)
  • Thread Starter kicia

    (@kicia)

    Trying to deal with it by myself I made a very bad move and now don’t know what to do.

    I used this in functions.php ( https://codex.www.ads-software.com/Changing_The_Site_URL )

    update_option('siteurl','https://example.com');
    update_option('home','https://example.com');

    changing examples to my home and blog urls. And the site disappeared, I have 404 error trying to login to wp admin and totally messed up site on every page.

    I deleted these two lines from functions.php in file editor, but it didn’t get better, deleting these lines didn’t caused any improvement.

    Seems like adding these lines caused modifications in other wp files, but I have no idea where to look for a solution.

    Do you have any idea, how to fix my site?

Viewing 1 replies (of 1 total)
  • The topic ‘Different site titles for a multiple themes site’ is closed to new replies.