• 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

louisagung

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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • November 9, 2016 at 8:50 am in reply to: Responsive table plugin #195946
    louisagung
    Member

    Found the solution here: http://sitesforprofit.com/responsive-tables-in-wordpress
    I put this code in the child theme's CSS:

    @media screen and (max-width: 600px) {
    table {width:100%;}
    thead {display: none;}
    tr:nth-of-type(2n) {background-color: inherit;}
    tr td:first-child {background: #f0f0f0; font-weight:bold;font-size:1.3em;}
    tbody td {display: block;  text-align:center;}
    tbody td:before { 
        content: attr(data-th); 
        display: block;
        text-align:center;  
      }
    }

    and this code in the Footer Scripts section in Theme Settings:

    <script>
    var headertext = [];
    var headers = document.querySelectorAll("thead");
    var tablebody = document.querySelectorAll("tbody");
    
    for (var i = 0; i < headers.length; i++) {
    	headertext[i]=[];
    	for (var j = 0, headrow; headrow = headers[i].rows[0].cells[j]; j++) {
    	  var current = headrow;
    	  headertext[i].push(current.textContent);
    	  }
    } 
    
    for (var h = 0, tbody; tbody = tablebody[h]; h++) {
    	for (var i = 0, row; row = tbody.rows[i]; i++) {
    	  for (var j = 0, col; col = row.cells[j]; j++) {
    	    col.setAttribute("data-th", headertext[h][j]);
    	  } 
    	}
    }
    </script>

    Works neatly!

    November 1, 2016 at 10:56 pm in reply to: Responsive table plugin #195627
    louisagung
    Member

    Hi,

    I just implemented the local installation as written in https://datatables.net/manual/installation. I put the DataTables HTML inclusion in my Executive Pro's Landing Page Template (page_landing.php) file, before the run Genesis loop. Nothing happened. I guess I missed something.

    I uploaded the DataTables folder directly under public_html but I don't see any datatables.css or datatables.js in the DataTables folder. The Responsive folder is there in the extensions folder though.

    Maybe someone has a step by step instruction?

    October 31, 2016 at 8:22 pm in reply to: Responsive table plugin #195581
    louisagung
    Member

    Hi Victor, where should I put the HTML for the DataTables? I'm using Genesis Executive Pro Theme. Should I put it in Genesis parent theme or in the Executive child theme? What is the best theme file to put it in?

    October 26, 2016 at 4:20 pm in reply to: Responsive table plugin #195373
    louisagung
    Member

    I see. I'll take a look, Victor. Thank you!

    August 24, 2016 at 2:11 am in reply to: Editing sidebar widget in Executive Pro theme #191935
    louisagung
    Member

    Nevermind, I've found it. Turns out that I have to switch to single post to make the sidebar widgets appear.

    July 5, 2016 at 5:13 pm in reply to: Editing the single post page #188927
    louisagung
    Member

    Thanks, Victor. I used the simple edit plugin and it works perfectly!

    July 3, 2016 at 7:31 pm in reply to: Spacing between border and content #188819
    louisagung
    Member

    Hi darrenbrettking,

    thank you for the detailed suggestion. It works perfectly!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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