Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter dhin

    (@dhin)

    Where I can find funtions.php?

    it’s in wp-content/themes/your-theme-name-here/

    Look in your active theme’s directory.

    Thread Starter dhin

    (@dhin)

    I dont see on theme`s directory – functions.php update_option(‘siteurl’,’http://example.com/blog’);

    I see only this in functions.php `<?php if ( function_exists(‘register_sidebar’) ) {register_sidebar();register_sidebar();}
    // Custom Header Image Support

    define(‘HEADER_TEXTCOLOR’, ”);
    define(‘HEADER_IMAGE’, ‘%s/img/header.jpg’); // %s is theme dir uri
    define(‘HEADER_IMAGE_WIDTH’, 900);
    define(‘HEADER_IMAGE_HEIGHT’, 180);
    define( ‘NO_HEADER_TEXT’, true );

    function theme_admin_header_style() {
    ?>
    <style type=”text/css”>
    #headimg {
    background:#fff url(<?php header_image() ?>) no-repeat center;
    height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
    width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
    }
    #headimg * {
    display:none;
    }
    </style>
    <?php
    }
    function theme_header_style() {
    ?>
    <style type=”text/css”>
    #headimage
    {
    /*background:url(<?php header_image(); ?>) no-repeat center;*/
    height:<?php echo HEADER_IMAGE_HEIGHT; ?>px;
    width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
    }
    </style>
    <?php
    }
    if ( function_exists(‘add_custom_image_header’) ) {
    add_custom_image_header(‘theme_header_style’, ‘theme_admin_header_style’);
    }
    ?>`

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    If there isn’t one in your active theme, you can make one.

    Add these two lines to the file, immediately after the initial "<?php" line.
    
    update_option('siteurl','http://example.com/blog');
    update_option('home','http://example.com/blog');
    
    Use your own URL instead of example.com, obviously.

    or use one of the other options to change your site url?

    Anonymous User 803480

    (@anonymized-803480)

    If you can access the database you can always do an update to the corresponding row in the options table.

    Thread Starter dhin

    (@dhin)

    To late. I have delete all my blog from fanupdate and also delete all the wordpress cos I would like to uplaod again

    people sure go about things the hard way

    Thread Starter dhin

    (@dhin)

    I think this is the best way

    Of course you must do it whatever way works for you really.

    Hopefully that will work for you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘What I have done’ is closed to new replies.