Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)
  • <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="https://www.sitename.com/home/images/my_image.png" alt="Alt Text" height="" width=""></a>

    Since both the theme and plugin are using output buffering to render their markup, the theme may be wiping out the plugin buffer output. The best bet would be to create a child theme and modify the footer.php, for instance

    <?php
    
    global $montezuma;
    ditty_news_ticker(88); //<-- outputs just fine on my test
    echo bfa_parse_php( $montezuma['subtemplate-footer'] );

    If you still want to be able to modify the other content in the footer via the admin interface then just leave the line below, since this code is what outputs the virtual database driven markup, as far as I can tell

    echo bfa_parse_php( $montezuma['subtemplate-footer'] );

    <header id="branding" role="banner">
          <div id="inner-header" class="clearfix">
             <img src="https://www.sitename.com/home/images/my_image.png" alt="Alt Text" height="" width="">
          </div>
    </header>

    In your child theme’s style.css look for

    #navigation {
    position: absolute;
    height: 50px;
    top: 50%;
    right: 15px;
    margin-top: -16px;
    }

    And change it to

    #navigation {
    position: absolute;
    top: 258px;
    }

    [Moderator note – the following changes should be made in a Child Theme – do not modify theme files directly]

    This theme doesn’t support a custom header, so you can just edit the markup yourself. In the header.php where the site title and description get output, just add/edit the markup there to show your logo image

    <header id="branding" role="banner">
          <div id="inner-header" class="clearfix">
    		<hgroup id="site-heading">
    			<h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    			<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    		</hgroup>
          </div>
    	</header>
    Forum: Themes and Templates
    In reply to: Parse Error

    DOH! just saw what yogi posted, sorry

    Forum: Themes and Templates
    In reply to: Parse Error
    if ( $template != 'full' ) {
    
    } // <-- whoopsie ?><div id="sidebar">

    You can enter content in the footer two ways:

    In Appearance -> Theme Options -> General(Tab) -> Footer Content, here you can add some content.

    Or you could modify the footer.php directly in your custom theme.

    Delete the theme folder and WordPress will revert back to the original Twenty Twelve theme. That way you can at least get back into the admin interface and go with something else ??

    In the loop.php theme file remove the following line:

    <div class="postinfo"><?php do_action('themezee_display_postinfo_index'); ?></div>

    Remember always create a child theme first before making the aforementioned changes

    In the header.php look for the following code

    elseif ( get_header_image() ) : ?>
      <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>

    And change to the following:

    elseif ( get_header_image() ) : ?>
        <?php if ( is_home() || is_front_page() ) : ?>
          <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
        <?php endif; ?>
    <?php endif; ?>

    Remember always create a child theme first before making the aforementioned changes

    1.) It uses the featured image on a post to display the thumbnails, so set a featured image on your posts and you will see the thumbnails instead of the placeholder image

    2.) If you go to Appearance -> Widgets you will see a widget listed named “GamePress: Recent news, reviews & videos” drag that to the main sidebar and you will see the tabbed widget for recent posts, reviews, and videos.

    3.) There are menu options to put Videos and Game Reviews from the admin menu

    4.) Explore all the options in the admin menu, chances are you just overlooked these things.

    Yea this is one that you will have to extend a class for sadly because the default wp implementation doesn’t allow you to add attributes to an li element via a filter, only css classes AFAIK.

    In your theme’s function.php create something similar

    class my_custom_li_nav_menu extends Walker_Nav_Menu {
    
    	function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    		$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    
    		$class_names = $value = '';
    
    		$classes = empty( $item->classes ) ? array() : (array) $item->classes;
    		$classes[] = 'menu-item-' . $item->ID;
    
    		$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
    		$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
    
    		$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
    		$id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
    
    		// We've got a sub-menu, you can remove this condition and
    		// have the attribute display for all the li elements, but just in case you only wanted sub menus
    		if ( $depth > 0) {
    			// This is where the magic happens lol
    			$output .= $indent . '<li' . $id . $value . $class_names .' aria-haspopup="true">'; 
    
    		} else {
    
    			$output .= $indent . '<li' . $id . $value . $class_names .'>';
    		}
    		$attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';
    		$attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';
    		$attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';
    		$attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';
    
    		$item_output = $args->before;
    		$item_output .= '<a'. $attributes .'>';
    		$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
    		$item_output .= '</a>';
    		$item_output .= $args->after;
    
    		$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
    	}
    }

    Then in your child theme header.php, (for instance if it were based on TwentyTwelve) you would want to go to the header file and add the walker argument like so

    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'walker' => new my_custom_li_nav_menu() ) ); //<-- on the end there ?>
    Forum: Fixing WordPress
    In reply to: Articles per page

    If you mean the number of articles shown per page including search you go to your Dashboard -> Settings -> Reading
    Look for the Blog pages show at most setting and change the number to whatever you prefer.

    Yes it is, if you go to

    Appearance -> Widgets

    You can drag the search widget over to the Primary Sidebar, save it and then you will see the search box.

Viewing 15 replies - 1 through 15 (of 31 total)