• 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

BennettGlobal

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 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • March 31, 2013 at 3:23 pm in reply to: Photo Enlarge in Posts #32340
    BennettGlobal
    Member

    Hi Anitac,

    Here is the code I found in my CSS.  I added the slash in front of height and tried to post an image and it did not work.

    /* Images
    ------------------------------------------------------------ */

    img {
    /height: auto;
    max-width: 100%;
    }

    .avatar,
    .entry-content img,
    .featuredpage img,
    .featuredpost img,
    .post-image {
    background-color: #fff;
    border: 4px solid #eee;
    padding: 1px;
    }

    .home-middle .featuredpost img {
    margin: 0 0 10px;
    }

    .author-box .avatar {
    background-color: #fff;
    float: left;
    height: 72px;
    margin: 0 10px 0 0;
    width: 72px;
    }

    .post-image {
    margin: 0 10px 10px 0;
    }

    .comment-list li .avatar {
    background-color: #fff;
    float: left;
    height: 30px;
    margin: 0 5px 0 0;
    width: 30px;
    }

    img.centered,
    .aligncenter {
    display: block;
    margin: 0 auto 10px;
    }

    img.alignnone {
    display: inline;
    margin: 0 0 15px;
    }

    img.alignleft {
    display: inline;
    margin: 0 15px 10px 0;
    }

    img.alignright {
    display: inline;
    margin: 0 0 10px 15px;
    }

    .alignleft {
    float: left;
    margin: 0 15px 0 0;
    }

    .alignright {
    float: right;
    margin: 0 0 0 15px;
    }

    .wp-caption {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: center;
    }

    p.wp-caption-text {
    font-size: 12px;
    line-height: 16px;
    padding: 5px 0;
    }

    .wp-smiley,
    .wp-wink {
    border: none;
    float: none;
    }

    .gallery-caption {
    }

    March 31, 2013 at 12:20 pm in reply to: Image Slideshow for Posts #32298
    BennettGlobal
    Member

    Hey Brad,

    Thanks for the knowledge...I got it to work based on your suggestion after a few minutes.

    Michael

    March 31, 2013 at 12:17 pm in reply to: YouTube Code & Genesis Featured Post Widget #32296
    BennettGlobal
    Member

    Hi Anitac,

    Your solution worked great.  Thank you.  If only I could figure out how to get rid of some of those YouTube ads that appear at the beginning.  I saw where it allows you to pick a starting point, but they also embedded some video right over the first few seconds of the video.

    Thank you again...You are a valuable resource and I really appreciate all of the things you're teaching me.  I'm sure I'll be calling on you again.

    Michael

    March 30, 2013 at 11:23 pm in reply to: YouTube Code & Genesis Featured Post Widget #32196
    BennettGlobal
    Member

    Hi Anitac,

    I used the URL.  Should I have used the Embed code?  If so, I've never done that before and not sure how to do it.

    Michael

    March 25, 2013 at 8:22 pm in reply to: Photo Credit Widgets #31237
    BennettGlobal
    Member

    Thanks Anitac,

    I will give it a try...I'm still learning how to hard code things so this will be a good challenge...

    Michael

    March 20, 2013 at 1:33 pm in reply to: Genesis Responsive Slider Widget #29776
    BennettGlobal
    Member

    Anitac,

    Thank you...it worked like a charm.

    Michael

    March 15, 2013 at 8:16 pm in reply to: Widget Area Font Size #27250
    BennettGlobal
    Member

    Pinky,

    Thank you, it worked like a charm...I spent 20 minutes looking in my home page CSS and couldn't find they code I was looking for.  I guess my eyes are tired.

    Thanks Again,

    Michael

    March 14, 2013 at 6:12 pm in reply to: Create New Page Template #26924
    BennettGlobal
    Member

    MB, Bill, Brad,

    Well, I have finally solved my problem.  That / mark after this--- remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );\ was the problem.  As I examined the code further, it appears that when I copied the code into my php folder it placed a / mark after several lines of code and gave me a continuous set of error codes, so I removed all of them and it works fine now.  I feel incredibly stupid putting you all through this, but I'm now off to the races.

    Thank You All...

    Until I need you again (which I'm sure I will)

    Michael

    March 13, 2013 at 10:53 pm in reply to: Create New Page Template #26127
    BennettGlobal
    Member

    Now I'm really stumped.

    Re-did my Custom Home Page Template (the one I call Entertainment) using Brad's code as a test.  My previous line 12 error is now on line 9 but the same message.  It's the exact same line of code in both error messages.

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );\

    I'm stumped.  Any ideas what I should do?  I will check tomorrow.  I've been at this for 18 hours trying to solve this and my eyes are shot.

    Thanks,

    Michael

    Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12

    Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/magazine/Entertainment.php on line 9

     

    March 13, 2013 at 10:26 pm in reply to: Create New Page Template #26126
    BennettGlobal
    Member

    Hey Bill,

    Sorry about the tutorial mix up.  I'm so tired, I can't keep my eyes open.  I will test the code in the morning...I've been at this for 18 hours.  My eyes are shot.

    Michael

    March 13, 2013 at 9:43 pm in reply to: Create New Page Template #26119
    BennettGlobal
    Member

    Hey Bill,

    That one change did not work, I still get the error code, but after reading your tutorial code its identical to what I want to do other than the name.  I think I'm going to give it a try.

    Michael

    March 13, 2013 at 7:15 pm in reply to: Create New Page Template #26090
    BennettGlobal
    Member

    Hi Bill,

    http://pastebin.com/i5iNpFuw

    This is the error message I received if that helps.  Let me know if you need more information.

    Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12

    Michael (BennettGlobal)

    March 13, 2013 at 6:33 pm in reply to: Create New Page Template #26081
    BennettGlobal
    Member

    Hi MB,

    Glad to have a new BFF who not only shares my problems, but my initials as well.  I will test your theory momentarily.

    Yes, the Magazine Child Theme has six widget areas.  I am essentially trying to keep the ENTERTAINMENT page in the same format as my home page, but with the flexibility to put things in certain key categories and have a widget that allows some of my images in the slider to differ from the Home page.  I just copied the php code as is and changed the name to reflect my new template name.  It looked pretty easy, but obviously I missed something.

    I have a little more time than you do.  I was planning on being live by the end of this month.  My plans are somewhat ambitious long term, but I've got to get started.

    I'm glad you reminded me about the functions.php.  I did remember to add those widget areas, but honestly, I forgot I did it until just now.

    Hopefully a php genius will come along shortly and solve both of our problems.

    The other MB...

    March 13, 2013 at 4:59 pm in reply to: Create New Page Template #26072
    BennettGlobal
    Member

    I'm having some problems trying to create a page template and I need some help.  My site is bgemagazine.  My goal, was to create a page called ENTERTAINMENT.  This page would have the exact same layout as my Home page, but use a different slider.  They objective here is to not only create a different slider (I understand I will need to use a non-Genesis slider) but to have certain categories of posts appear on this entertainment page.

    The steps I've taken so far:

    I went into my cPanel on Host Gator with the following code to create a php file called pages_entertainment.php.  When I go back to my Dashboard to create a new page, the drop down menu for page type gives me the option to select Entertainment.  It also appears in my Editor under Genesis.  When I created a test page using the Entertainment template and placed it in Secondary Navigation bar it seemed fine.  Then when I went to open the page it gave me this error:

    Parse error: syntax error, unexpected T_STRING in /home/bgeinc/public_html/wp-content/themes/genesis/page_entertainment.php on line 12

    According to my code editor in Host Gator this is line 12....

    remove_action( 'genesis_loop', 'genesis_do_loop' );\

    --------------------------------------------------------------------------------------------------------------------------------------------------------
    *  Template Name: Entertainment    */
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'magazine_entertainment_loop_helper' );
    /**
    * Add widget support for entertainmentpage. If no widgets active, display the default loop.
    *
    */
    function magazine_entertainment_loop_helper() {

    if ( is_active_sidebar( 'entertainment-top' ) || is_active_sidebar( 'entertainment-left' ) || is_active_sidebar( 'entertainment-right' ) || is_active_sidebar( 'entertainment-bottom' ) ) {

    if ( is_active_sidebar( 'entertainment-top' ) ) {
    echo '<div class="entertainment-top">';
    dynamic_sidebar( 'entertainment-top' );
    echo '</div><!-- end .entertainment-top -->';
    }

    if ( is_active_sidebar( 'entertainment-left' ) || is_active_sidebar( 'entertainment-right' ) ) {

    echo '<div class="entertainment-middle">';

    if ( is_active_sidebar( 'entertainment-left' ) ) {
    echo '<div class="entertainment-left">';
    dynamic_sidebar( 'entertainment-left' );
    echo '</div><!-- end .entertainment-left -->';
    }

    if ( is_active_sidebar( 'entertainment-right' ) ) {
    echo '<div class="entertainment-right">';
    dynamic_sidebar( 'entertainment-right' );
    echo '</div><!-- end .entertainment-right -->';
    }

    echo '</div><!-- end .entertainment-middle -->';

    }

    if ( is_active_sidebar( 'entertainment-bottom' ) ) {
    echo '<div class="entertainment-bottom">';
    dynamic_sidebar( 'entertainment-bottom' );
    echo '</div><!-- end .entertainment-bottom -->';
    }

    }

    else {
    genesis_standard_loop();
    }

    }

    genesis();
    -----------------------------------------------------------

    What am I doing wrong?  Is this the right approach for my desired result.  I'm a neophyte at this so be easy on me...

    February 12, 2013 at 4:45 pm in reply to: Add Date in Header Under Title #19937
    BennettGlobal
    Member

    Tony,

    Thank you very much.  This is great.  I made the change in about a minute.

    Can't thank you enough.

    Michael

    February 11, 2013 at 7:11 pm in reply to: Center Title and Description in Magazine Format #19740
    BennettGlobal
    Member

    Hi Peter,

    Thank You very much.  It worked like a charm.

    Michael

  • Author
    Posts
Viewing 16 posts - 1 through 16 (of 16 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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