Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #6939

    Justin A
    Participant

    I saw in another post you recommended a child theme and inserting:

    /framework/views/global/_content-none.php

    to allow the page saying “Nothing to show” to be updated. I did the above but cannot find where to alter this page and content.

    site: http://orlandogreener.com/newsite/

    #6941

    Rubin
    Keymaster

    Hey Justin,

    you have to copy paste this file from the parent theme folder into your child theme folder and then edit the file in your child theme folder to your needs. Save it and then when the child theme is activated you will see the changes.

    #6943

    Justin A
    Participant

    My knowledge of wordpress is extremely limited. I do not understand this process.

    #6948

    Rubin
    Keymaster

    Hey Justin,

    did you watch the video in the Video Tutorials section on how to install a child theme? Did you already set it up? Once you’ve done that copy /framework/views/global/_content-none.php this file from the /x/ parent theme into the child theme. Then edit the _content-none.php file in the child theme to your needs.

    #6952

    Justin A
    Participant

    I did the child theme parts. It is installed. The editing is the part I’m not sure of. There is a title and content place when I view this home page. How do I edit one and not the other?

    #6958

    Rubin
    Keymaster

    Hey Justin,

    your file currently looks like this:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_CONTENT-NONE.PHP
    // -----------------------------------------------------------------------------
    // Output when no posts or pages are available.
    // =============================================================================
    
    ?>
    
    <article id="post-0" class="post-0 post type-post status-publish hentry">
      <div class="entry-wrap">
        <header class="entry-header">
          <h1 class="entry-title"><?php _e( 'Nothing to Show Right Now', '__x__' ); ?></h1>
        </header>
        <div class="entry-content">
          <?php _e( "It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.", '__x__' ); ?>
    
        </div>
      </div>
    </article> <!-- end #post-0 -->

    On line 14 you can change the title. And one line 17 you can change the message. Simply replace the content in the quotes.

    #6965

    Justin A
    Participant

    In wordpress editor, I cannot find the views/global file?
    Most pages for editing have:

    <?php x_get_view( x_get_stack(), ‘template’, ‘blank-1’ ); ?>

    #6966

    Justin A
    Participant

    It also has:

    A blank page for creating unique layouts.
    //
    // Content is output based on which Stack has been selected in the Customizer.
    // To view and/or edit the markup of your Stack’s index, first go to “views”
    // inside the “framework” subdirectory. Once inside, find your Stack’s folder
    // and look for a file called “template-blank-1.php,” where you’ll be able to
    // find the appropriate output.

    I cannot find “views” or “framework”, if this is relevant.

    #6967

    Justin A
    Participant

    p.s.
    The only editing options for the child theme in wordpress are:

    style.css with:
    /*

    Theme Name: X – Child Theme: Renew
    Theme URI: http://theme.co/x/
    Author: Themeco
    Author URI: http://theme.co/
    Description: Make all of your modifications to Renew in this child theme.
    Version: 1.0.0
    Template: x

    */

    @import url( ‘../x/framework/css/site/stacks/renew.css’ );

    OR

    funtions.php with

    <?php

    // =============================================================================
    // FUNCTIONS.PHP
    // —————————————————————————–
    // Overwrite or add your own custom functions to X in this file.
    // =============================================================================

    #6980

    Rubin
    Keymaster

    Hey Justin,

    you have to go to your x parent theme /wp-content/themes/x/ and in there go to /framework/views/global/_content-none.php and copy that file and then go into your child theme folder and recreate the path so create a folder called /frameworks/ then a folder names /views/ inside the frameworks folder and then inside the views folder a folder called /global/ in that global folder you paste _content-none.php and then you edit that file you copied in there.

    #6984

    Justin A
    Participant

    How can I access this from the wordpress editor?
    These are the only options that wordpress is giving me for editing in the parent theme:

    Templates

    404 Template
    (404.php)

    archive-x-portfolio.php

    Comments
    (comments.php)

    Footer
    (footer.php)

    Theme Functions
    (functions.php)

    Header
    (header.php)

    Main Index Template
    (index.php)

    Page Template
    (page.php)

    Search Form
    (searchform.php)

    Sidebar
    (sidebar.php)

    single-x-portfolio.php

    Single Post
    (single.php)

    Blank – Container | Header, Footer Page Template
    (template-blank-1.php)

    Blank – Container | Header, No Footer Page Template
    (template-blank-2.php)

    Blank – Container | No Header, No Footer Page Template
    (template-blank-3.php)

    Blank – No Container | Header, Footer Page Template
    (template-blank-4.php)

    Blank – No Container | Header, No Footer Page Template
    (template-blank-5.php)

    Blank – No Container | No Header, No Footer Page Template
    (template-blank-6.php)

    Blank – Container | No Header, Footer Page Template
    (template-blank-7.php)

    Blank – No Container | No Header, Footer Page Template
    (template-blank-8.php)

    Layout – Content Left, Sidebar Right Page Template
    (template-layout-content-sidebar.php)

    Layout – Full Width Page Template
    (template-layout-full-width.php)

    Layout – Sidebar Left, Content Right Page Template
    (template-layout-sidebar-content.php)

    vc_column.php

    vc_row.php

    single-product-reviews.php

    woocommerce.php

    Styles

    Stylesheet
    (style.css)

    #6997

    Rubin
    Keymaster

    Hey,

    you can’t access it from the WordPress editor you need a ftp program for that.

    #7006

    Justin A
    Participant

    how do I get that?

    #7014

    Justin A
    Participant

    Nevermind. Bluehost tech support did it all for me. I recommend bluehost;)

    #7028

    Rubin
    Keymaster

    Awesome, is everything working now?