• 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

single.php ?

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

Community Forums › Forums › Archived Forums › Design Tips and Tricks › single.php ?

This topic is: not resolved

Tagged: single.php

  • This topic has 5 replies, 2 voices, and was last updated 9 years, 5 months ago by jantsu78.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 3, 2017 at 11:35 am #205819
    jantsu78
    Member

    I need custom single.php for news-pro theme.

    I also need <ul><li> tags right after <div class="entry-content" itemprop="text">

    Can someone please help me and give me the code for single.php?

    May 4, 2017 at 2:37 pm #205909
    Brad Dalton
    Participant

    Here's a basic custom single.php file

    You can hook in the HTML using a custom function directly in this template file using any genesis hook.

    Something like:

    add_action( 'genesis_entry_content', 'your_function' );
    function your_function() {
    echo'Add HTML Tags Here';
    }
    

    Tutorials for StudioPress Themes.

    May 7, 2017 at 1:21 pm #206060
    jantsu78
    Member

    Well, this code add "Add HTML Tags Here" after content.

    What i need is <ul><li>content</li></ul>. I dont know anything about php, so i dont know how to do functions etc.

    May 7, 2017 at 1:44 pm #206062
    Brad Dalton
    Participant

    Hi

    Link to a live site please.

    Simply replace the text Add HTML Tags Here with your HTML.


    Tutorials for StudioPress Themes.

    May 7, 2017 at 2:35 pm #206068
    jantsu78
    Member

    I dont have live site yet, i have only demo because of this problem.

    single.php what im using -->

    <?php
    
    add_filter( 'body_class', 'single_posts_body_class' );
    function single_posts_body_class( $classes ) {
       $classes[] = 'custom-single';
       return $classes;  
    }
    
    // Force content-sidebar layout setting
    add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );
    //* Remove site footer widgets
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    
    //* Run the Genesis loop
    genesis();

    I just need <ul><li> after <div class="entry-content" itemprop="text"> and closing </li></ul> after content.

    It should be then something like this <div class="entry-content" itemprop="text"> <ul><li>the_content </li></ul></div>

    May 15, 2017 at 1:28 am #206442
    jantsu78
    Member

    Anyone... help?

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

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