Odpowiedź forum utworzona

Zobacz 12 odpowiedzi - od 1 do 12 (z 12 łącznie)
  • Forum: Wtyczki
    W odpowiedzi na: nagłówek jako odnośnik

    U mnie to wygląda tak:

    <h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>

    Forum: Wtyczki
    W odpowiedzi na: nagłówek jako odnośnik

    najprosciej:
    <h1>…</h1>
    u mnie to wygląda tak:
    <h1>„><?php bloginfo(’name’); ?></h1>

    Forum: Wtyczki
    W odpowiedzi na: nagłówek jako odnośnik

    Musisz wstawić odnośnik w odpowiednim miejscu w kodzie strony. Podejrzewam, że header.php to plik, który powinieneś edytować.

    Twórca wątku matrus

    (@matrus)

    Znalazłem – dla potomnych:

    Najnowsza aktualizacja wtyczki WordPress Tweaks

    Pozdrawiam

    Twórca wątku matrus

    (@matrus)

    Ponawiam pytanie.

    Twórca wątku matrus

    (@matrus)

    No dobra pobieram wersję 2.9.2.
    Robię kopie Bazy i wszystkich plikow z ftp.
    Następnie ładuję pliki, ale które?
    Przegrywam pliki z instalki na serwer bez wp-content?
    Pozdrawiam

    Twórca wątku matrus

    (@matrus)

    Z tego co pamiętam to 2.89 lub coś około…

    Twórca wątku matrus

    (@matrus)

    Pytanie: Czy jest możliwość wykonania downgrade automatycznie??
    Bo nie zrobiłem kopii zapasowej…

    Twórca wątku matrus

    (@matrus)

    Tak tak się stało po aktualizacji…
    Właśnie wyłączyłem wtyczkę:
    Redirection
    I można powiedzieć zaczęło działać…
    Chociaż od tego wszystkiego trochę się pozmieniało. Muszę od początku poprawić wygląd i przetłumaczyć WP – ale i tak lepiej niż jakbym miał przeinstalowywać całe oprogramowanie 🙂
    Drugim symptomem tej aktualizacji było wyświetlanie się reklam amazon.com przez błedne działanie wtyczki Easy Adsense, którą też wyłączyłem.
    Jedno jest pewnie nie spotkałem się jeszcze z takim supportem jak na tym forum. Jestem zaskoczony!
    Dziękuję chłopaki za spędzony czas.
    Pozdrawiam

    Twórca wątku matrus

    (@matrus)

    header.php:

    <?php
    /**
     * @package WordPress
     * @subpackage Motion
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php wp_title('|', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
    <!--[if lt IE 7]>
    <link href="<?php bloginfo( 'template_url' ); ?>/ie6.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript">var clear="<?php bloginfo( 'template_url' ); ?>/images/clear.gif"; //path to clear.gif</script>
    <script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/unitpngfix.js"></script>
    <![endif]-->
    
    <?php wp_enqueue_script( 'sfhover', get_template_directory_uri() . '/js/sfhover.js' ); ?>
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="wrapper">
    
    <div id="top">
    	<div id="topmenu">
    		<ul>
    			<?php if ( !motion_hide_homelink() ) : ?><li class="page_item<?php echo ( is_home() || is_front_page() ? ' current_page_item' : '' ); ?>"><a href="<?php echo get_option( 'home' ); ?>/">Home</a></li><?php endif; ?>
    			<?php wp_list_pages( 'depth=1&title_li=0&sort_column=menu_order' ); ?>
    			<li><a class="rss" href="<?php bloginfo( 'rss2_url' ); ?>">RSS</a></li>
    		</ul>
    	</div>
    
    	<div id="search">
    		<form method="get" id="searchform" action="<?php bloginfo( 'url' ); ?>/">
    			<p>
    				<input type="text" value="<?php _e("Search this site..."); ?>" onfocus="if (this.value == '<?php _e("Search this site..."); ?>' ) { this.value = ''; }" onblur="if (this.value == '' ) { this.value = '<?php _e("Search this site..."); ?>'; }" name="s" id="searchbox" />
    				<input type="submit" class="submitbutton" value="GO" />
    			</p>
    		</form>
    	</div>
    </div><!-- /top -->
    
    <div id="header">
    	<div id="logo">
    		<a href="<?php echo get_option( 'home' ); ?>"><img src="<?php header_image() ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>
    		<h1><a href="<?php echo get_option( 'home' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
    		<div id="desc"><?php bloginfo( 'description' ); ?></div>
    	</div><!-- /logo -->
    
    	<?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'header' ) ) : ?>
    	<div id="headerbanner">
    		<p>Hey there! Thanks for dropping by <?php bloginfo( 'name' ); ?>! Take a look around and grab the <a href="<?php bloginfo( 'rss2_url' ); ?>">RSS feed</a> to stay updated. See you around!</p>
    	</div>
    	<?php endif; ?>
    </div><!-- /header -->
    
    <?php if ( !motion_hide_categories() ) : ?>
    <div id="catnav">
    	<ul id="nav">
    		<?php wp_list_categories( 'orderby=name&title_li=' ); ?>
    	</ul>
    </div><!-- /catnav -->
    <?php endif; ?>

    i .htaccess:

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    # END WordPress

    Pozdrawiam

    Twórca wątku matrus

    (@matrus)

    Wklejam od razu kod strony głównej (index.php) może tutaj jest coś na rzeczy:

    <?php
    /**
     * @package WordPress
     * @subpackage Motion
     */
    get_header(); ?>
    
    <div id="main">
    
    	<div id="content">
    
    		<h2 id="contentdesc">Results &raquo;</h2>
    
    		<?php if ( have_posts() ) : ?>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php if ( function_exists( 'wp_list_comments' ) ) : ?>
    		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    		<?php else : ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<?php endif; ?>
    
    			<div class="posttop">
    				<h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<div class="postmetatop">
    					<div class="categs">Filed Under: <?php the_category( ', ' ); ?>  by <?php the_author() ?>  &mdash; <?php comments_popup_link( __( 'Leave a comment' ), __( '1 Comment' ), __( '% Comments' ) ) ?></div>
    					<div class="date"><span><?php the_time( get_option( 'date_format' ) ); ?></span></div>
    				</div>
    			</div>
    
    			<div class="postcontent">
    				<?php the_excerpt( 'View full article &raquo;' ); ?>
    			</div>
    
    			<div class="postmetabottom">
    				<div class="tags"><?php the_tags( 'Tags: ', ', ', '' ); ?></div>
    				<div class="readmore"><span><a href="<?php the_permalink(); ?>">Read more</a></span></div>
    			</div>
    
    		</div><!-- /post -->
    
    		<?php endwhile; ?>
    
    		<?php else : ?>
    
    		<div class="post">
    			<div class="posttop">
    				<h2 class="posttitle"><a href="#">Oops!</a></h2>
    			</div>
    			<div class="postcontent">
    				<p>What you are looking for doesn't seem to be on this page...</p>
    			</div>
    		</div><!-- /post -->
    		<?php endif; ?>
    
    		<div id="navigation">
    			<?php if ( function_exists( 'wp_pagenavi' ) ) : ?>
    			<?php wp_pagenavi(); ?>
    			<?php else : ?>
    				<div class="alignleft"><?php next_posts_link( '&laquo; Older Entries' ); ?></div>
    				<div class="alignright"><?php previous_posts_link( 'Newer Entries &raquo;' ); ?></div>
    			<?php endif; ?>
    		</div><!-- /navigation -->
    
    	</div><!-- /content -->
    
    	<?php get_sidebar(); ?>
    
    </div><!-- /main -->
    
    <?php get_footer(); ?>

    Pozdrawiam

    Twórca wątku matrus

    (@matrus)

Zobacz 12 odpowiedzi - od 1 do 12 (z 12 łącznie)