• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

NWTD

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 20 posts - 1 through 20 (of 46 total)
1 2 3 →
  • Author
    Posts
  • October 18, 2016 at 11:24 am in reply to: Changing up the display of the Genesis Slider #194978
    NWTD
    Member

    Currently the magazine theme.

    February 20, 2015 at 12:25 pm in reply to: Trouble with a single-xx.php template in Outreach #141509
    NWTD
    Member

    Single page template.

    Understood on the echo do_shortcode -- I'm literally copy/pasta from the plugin's own template to make it work within genesis.

    February 20, 2015 at 11:52 am in reply to: Trouble with a single-xx.php template in Outreach #141492
    NWTD
    Member

    That's for the post's title. I'm talking about the title of the page located in the <head> section of the HTML markup. Sorry for the confusion.

    March 3, 2014 at 2:44 pm in reply to: Missing Header/Footer Scripts #93260
    NWTD
    Member

    To clarify, as the Super Admin, I am able to see the Header/Footer scripts, but I would also like for local admins to have access to them as well.

    February 25, 2014 at 11:00 pm in reply to: Removing meta, info and comments #92400
    NWTD
    Member

    @braddalton Thank you!!!

    I swear I scoured the documentation and couldn't find anything relating to the HTML5 version of the codes. The only thing I haven't been able to find is how to remove comments from just this category. Did I miss that in the link you sent?

    February 24, 2014 at 1:28 pm in reply to: Changing function of "Genesis – Featured Posts" image #92179
    NWTD
    Member

    Rather than altering the way the widget functions, could I add my desired output to the widget callback in the template?

    My current theme is calling the widget with the following:

    genesis_widget_area( 'home-top', array(
    	'before' => '<div class="home-top widget-area"><div class="wrap">',
    	'after'  => '</div></div>',
    ) );

    I tried the following with no luck...maybe there's a better way?

    $bkgd_img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'home-top' );
    	
    genesis_widget_area( 'home-top', array(
    	'before' => '<div class="home-top widget-area" style="background-image: url(' . $bkgd_img . ');"><div class="wrap">',
    	'after'  => '</div></div>',
    ) );
    January 24, 2014 at 1:02 pm in reply to: Moving nav outside of header wrap #86862
    NWTD
    Member

    Just out of curiosity, when you say you dug around int he code, by that I suppose you mean the Genesis "Theme", but were specifically are you looking. There's a few other similar cases I need to figure out for my custom theme, and I'd like to try to figure it out myself.

    January 24, 2014 at 12:41 pm in reply to: Moving nav outside of header wrap #86860
    NWTD
    Member

    Thanks so much @rfmeier! That worked perfect!

    My final code in my functions.php looked like this:

    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    add_action( 'genesis_header', 'custom_genesis_header_markup_close', 15 );
    function custom_genesis_header_markup_close() {
    
    	genesis_structural_wrap( 'header', 'close' );
    
    	genesis_do_nav();
    	
    	genesis_markup( array(
    		'html5' => '</header>',
    		'xhtml' => '</div>',
    	) );
    
    }
    January 24, 2014 at 10:09 am in reply to: Moving nav outside of header wrap #86836
    NWTD
    Member

    I don't think that will get the nav where I'm needing it. My current HTML ouput is as follows:

    <header>
         <div class="wrap">
                 <div class="title-area"></div>
                 <aside class="widget-area"></div>
         </div>
    </header>

    So everything I've tried, puts my nav inside the <div class="wrap">, which I don't want. Ideally, I'd like to look like this:

    <header>
         <div class="wrap">
                 <div class="title-area"></div>
                 <aside class="widget-area"></div>
         </div>
         <nav class="primary"></nav>
    </header>

    Where the nav is outside of the div.wrap. I hope that makes more sense.

    January 23, 2014 at 4:46 pm in reply to: Moving nav outside of header wrap #86705
    NWTD
    Member

    Thanks @rfmeier .

    I tried your suggestion. That moved the nav outside of the </header> DOM. I tried a value of 15, which resulted in the same. I tried a value of 14, which put the navigation inside the <div class="wrap"> DOM...which is right back where I started.

    January 2, 2014 at 3:53 pm in reply to: Adding a tag inside of the navigation links #82763
    NWTD
    Member

    If any one has any suggestions, I'd appreciate the feedback. I do have this posted on WordPress Answers as well

    January 2, 2014 at 12:03 pm in reply to: Adding a tag inside of the navigation links #82713
    NWTD
    Member

    Thanks @braddalton. I did come across that, however, I wasn't sure how to apply the filters and make it work for what I want or to apply the walker. Do you have any suggestions or examples of how to make it work?

    FWIW, I extended the walker class and was able to get menu items to have the <span> tag with this code. The only problem was that it just dumped that nav at the top of my pages rather than applying it to my exisitng nav in my templates.

    class Menu_With_Data_Attr extends Walker_Nav_Menu {
    	function start_el(&$output, $item, $depth, $args) {
    		global $wp_query;
    		$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    		
    		$class_names = $value = '';
     
    		$classes = empty( $item->classes ) ? array() : (array) $item->classes;
     
    		$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
    		$class_names = ' class="' . esc_attr( $class_names ) . '"';
     
    		$output .= $indent . '<li id="menu-item-'. $item->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 .'><span data-hover="'.$item->title.'">';
    		$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
    		$item_output .= '</span></a>';
    		$item_output .= $args->after;
     
    		$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
    	}
    }
    January 2, 2014 at 11:38 am in reply to: Adding a tag inside of the navigation links #82709
    NWTD
    Member

    @anitac That got me part way there. Adding that bit of code to my functions.php just dumped the menu at the top of my page. Is there a way to edit the output of the genesis_do_nav to show these changes?

    January 2, 2014 at 11:09 am in reply to: Adding a tag inside of the navigation links #82705
    NWTD
    Member

    @braddalton, My site's under development, so providing a link wouldn't be much help.

    I'm using the Genesis Sample child theme to develop my site.All I'm after is to add a <span> around the text in each navigation item.

    December 2, 2013 at 5:16 pm in reply to: Self hosted theme demos #76693
    NWTD
    Member

    My choice of words, "host", was not to imply that I wanted to host individual subsites for each theme on my network; unless, of course, that's how StudioPress has accomplished this. I was hoping for the same interaction from the SP theme shop, with the ability to open/close theme demos in a lightbox style and the ability to demo a mobile version.

    May 21, 2013 at 9:28 am in reply to: Responsive slider options #42026
    NWTD
    Member

    I ended up editing the plugin file. Not ideal since I may be using this plugin on multiple sites of my network...but it works for now. Maybe this could be a feature request for the next version?

    In `genesis-responsive-slider.php` on line 323, I added this:

    `<div class="meta">
    <div class="date"><?php echo get_the_date(); ?></div>
    <div class="category">
    <?php
    $category = get_the_category();
    if($category[0]){
    echo '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';
    }
    ?>
    </div>
    </div>`

    It works for what I need in the meantime.

    May 21, 2013 at 9:14 am in reply to: Responsive slider options #42025
    NWTD
    Member

    I'm using the Genesis Responsive Slider. I see the option for displaying a post's content and title. Maybe there's a hack that can go into the plugin file to get the meta?

    March 12, 2013 at 10:04 pm in reply to: Plugin page templates #25778
    NWTD
    Member

    ...bump...

    I can't seem to find any documentation worthy to point me in the right direction on making sure that these page templates are compatible with my Genesis Framework themes...any thoughts?

    Thanks!

    March 7, 2013 at 6:24 pm in reply to: Plugin page templates #24901
    NWTD
    Member

    Are there any other tutorials, documentations, examples or otherwise that might be able to point me in the right direction rather than relying on paid support from a third party? I've scoured the tutorials and code snippets and can't find anything really for accomplishing this.

     

    Is there a way to check if the genesis framework is used on a site and then use conditionals to create the page templates?

    February 4, 2013 at 8:52 pm in reply to: Responsive Slider navigation #18129
    NWTD
    Member

    Thanks! I realized that I wasn't using the responsive slider, but the regular slider. I changed to the responsive and have what I'm looking for. Thanks!

  • Author
    Posts
Viewing 20 posts - 1 through 20 (of 46 total)
1 2 3 →

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble