• 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

Badlywired

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 - 41 through 60 (of 156 total)
← 1 2 3 4 … 6 7 8 →
  • Author
    Posts
  • April 22, 2015 at 3:57 pm in reply to: Load Script If Not Logged In #148841
    Badlywired
    Member

    This will do it (add to your functions.php)

    add_action ('genesis_doctype','myscript',20);
    function myscript() {
    	?>
    	<script src=”//cdn.optimizely.com/js/2801570498.js”></script>
    	<?php
    }

    Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEWW5LKK5995J


    My techy blog WordPress and stuff badlywired.com

    April 17, 2015 at 2:43 pm in reply to: Personal Blog Using Beautiful Pro #148276
    Badlywired
    Member

    try

    .site-header { background-size: 100%!important; }

    To get your header image to resize resposively

    edit:

    Ooops I didn't realise the original post was over a year ago!


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 4:35 pm in reply to: Feedback #147124
    Badlywired
    Member

    Hi all.

    Integrating WooCommerce to Genesis isn't difficult. But I have just thrown together a plugin to make it dead simple

    Here it is https://badlywired.com/2015/04/genesis-woocommerce/ its avery rough page as I have literally just thrown it together


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 3:40 pm in reply to: Background Image 'Jumps' on when viewing on phone – Sixteen Nine #147118
    Badlywired
    Member

    It could be related to the javascript library 'backstretch' that is used to display the background image.

    Frankly that isn't needed for your site and could be removed and replaced with standard CSS

    find the 'enqueue' with 'backstretch in them and commend them out

    body { 
      background: url(images/bg.jpg) no-repeat center center fixed; 
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }

    will work with most browsers & versions where you have the background in your theme images file as bg.jpg or whather you want


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 3:31 pm in reply to: Remove Background Image on certain pages – Sixteen Nine Theme #147115
    Badlywired
    Member

    Yes

    edit

    wp-content/themes/sixteen-nine-pro/js/backstretch-set.js

    this is what sets the bg image in your theme

    jQuery(document).ready(function($) {
    	$("body").backstretch([BackStretchImg.src],{duration:3000,fade:750});
    });

    To something that doesn't load on the pages you dont want,

    e.g. if you don't want it on your contact page, which is page id 46, it has a class body.page-id-46 (see https://badlywired.com/2015/01/applying-styling-specific-wordpress-page/ to explain )

    so your new code becomes

    jQuery(document).ready(function($) {
    	$("body:not(body.page-id-46)").backstretch([BackStretchImg.src],{duration:3000,fade:750});
    });

    see https://api.jquery.com/not-selector/


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 3:06 pm in reply to: Creating Custom Post Types and Custom Fields #147111
    Badlywired
    Member

    ACF is used by lots.

    Personally I prefer to use the Custom Meta Box 2 library and 'hard code' the custom fields. CMB2 doesn't have a fancy gui, but is really simple object based definition of custom meta boxes https://github.com/WebDevStudios/CMB2

    My main logic here is I don't like the concept of a 'front end' that can change the custom fields that are actually hard coded into a theme, it means an administrator can break things. If you are going to design a theme and code functionality to use custom fields, its no hardship to define their meta boxes in simple OO code definitions.


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 2:04 pm in reply to: Agency Pro Add data from plugin #147098
    Badlywired
    Member

    If you have an XML file you can just use WP All Import.


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 2:02 pm in reply to: How To Become A Genesis Developer? #147097
    Badlywired
    Member

    You will need to know the basics of coding, i.e. the principals such are variables, conditional statements etc and also a basic understanding of how web pages are served to the internet by webservers, then you will also need a good understanding of HTML, a good understanding of CSS, a moderate understanding of Javascript (specifically jQuery) and and a moderate understanding of PHP (to start with but depends what you want to develop), as well as a reasonable understanding of WordPress functions and Genesis hook & filters.

    Thats to do the development part.

    Of course you want to create your own themes, so you will also need design skills too.


    My techy blog WordPress and stuff badlywired.com

    April 8, 2015 at 1:52 pm in reply to: Best way to identify styles used #147096
    Badlywired
    Member

    Personally I use Chrome. right click inspect element. It it really the easiest once you get used to it. It even tells you what line in the style.css


    My techy blog WordPress and stuff badlywired.com

    March 18, 2015 at 3:25 am in reply to: Apple-like Top Navigation in Genesis Child Theme #144811
    Badlywired
    Member

    I'd probably just hard code the logo into the first nav element based on this

    Add Nav Extras

    e.g.

    <?php
    //* Do NOT include the opening php tag
    
    add_filter( 'wp_nav_menu_items', 'theme_logo_menu_extras', 10, 2 );
    
    function theme_logo_menu_extras( $menu, $args ) {
    
    	//* Change 'primary' to 'secondary' to add extras to the secondary navigation menu
    	if ( 'primary' !== $args->theme_location )
    		return $menu;
    
          // add a list item containing an image to front of menu, style with css
    	$menu.= '<li class="logo"><img src="---change to path to image---" ></li>' . $menu;
    
    	return $menu;
    }

    Or similar


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 5:01 pm in reply to: AgentPress homepage slider #144784
    Badlywired
    Member

    No problem, I do it all day.

    It does get a bit complex when playing around with positioning things and send stuff to the back etc.

    The CSS approach worked here, although personally I would have reconstructed the home page using Genesis hooks to get everything sequenced right in the first place. But that is definitely in the more advanced class.

    Check out my blog for other tips I write up as I find them.


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:52 pm in reply to: AgentPress homepage slider #144780
    Badlywired
    Member
    .site-header {
           position:relative;
           z-index: 9999;}
    .home-featured {
          position: relative; 
          top: -80px;
           }
    .home-featured .wrap {
          width: 100%;
          max-width: 100%;
    }

    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:44 pm in reply to: AgentPress homepage slider #144778
    Badlywired
    Member

    I'm taking a look, leave it like it is for the moment


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:39 pm in reply to: AgentPress homepage slider #144775
    Badlywired
    Member

    If you want to put the slider up and behind the header, this can be done with css too.

    .site-container {position: relative;}
    .site-header {z-index: 9999;}
    .home-featured {position: absolute; top: 0;}

    will probably do it.

    Are you getting paid for this job?


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:36 pm in reply to: AgentPress homepage slider #144772
    Badlywired
    Member

    are you saying .home-featured .wrap {width: 100%;} didn't make the slider full width?


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:20 pm in reply to: AgentPress homepage slider #144770
    Badlywired
    Member

    p.s. you might want to change

    .site-header .wrap {
      background-color: #1a212b;
      color: #fff;
    }

    to

    .site-header  {
      background-color: #1a212b;
      color: #fff;
    }

    otherwise you'll have a strange 'wrapped' header with white gaps, followed by a full width slider


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 4:15 pm in reply to: AgentPress homepage slider #144769
    Badlywired
    Member

    As mentioned, its to do with the structured wraps.

    But indeed, a bit of css should sort it just making the home featured structured wrap 100%. I wasn't thinking that way (its late)

    .home-featured .wrap {width: 100%;}

    should do it.


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 3:42 pm in reply to: AgentPress homepage slider #144765
    Badlywired
    Member

    In the demo it isn't a slider, it is a single background image. Interesting it uses a script called backstretch that could
    be fairly easily reprogrammed into a slider with a bit of skill. http://srobbin.com/jquery-plugins/backstretch/

    change js/backstrech-set.js
    to contain, and the paths to your own images

    jQuery(document).ready(function($) {
    	$.backstretch([
          "http://dl.dropbox.com/u/515046/www/outside.jpg"
        , "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
        , "http://dl.dropbox.com/u/515046/www/cheers.jpg"
        ], {duration: 3000, fade: 750});
    });

    Although I don't expect that is what you want, its is one approach.

    In case you don't know you add that single image via customizer/background image.

    The other approach need a bit more though about the structural wraps, that keep the site 'inside' the width, you will be able to do this by hooking into the write area, but it isn't something I can solve off the cuff without actually being 'in' the site. But basically, it is a case of better understanding genesis, wraps and hooks.


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 3:18 pm in reply to: Apple-like Top Navigation in Genesis Child Theme #144761
    Badlywired
    Member

    The background on apple is transparent it is styled as such

    background: #444;
      background: rgba(0,0,0,0.6);
    

    The second line rgba has 4 parameter, the being the opacity. The #444 is just fallback for browser that can cope with rgba.

    However you will need to create an overlap between your slider & nav background to get the transparency effect.


    My techy blog WordPress and stuff badlywired.com

    March 17, 2015 at 3:08 pm in reply to: Adjust Width at Which Site Switches to Mobile Nav Menu #144760
    Badlywired
    Member

    It is triggered by some javascrit

    Look in the js directory

    You will find responsive-menu.js

    And line like

    if(window.innerWidth > 768)

    change the 768 to the value you want

    Please visit my blog for other tips


    My techy blog WordPress and stuff badlywired.com

  • Author
    Posts
Viewing 20 posts - 41 through 60 (of 156 total)
← 1 2 3 4 … 6 7 8 →
« Previous Page

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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