sfrangos

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Thematic Child Themes #4447

    sfrangos
    Participant

    Hello Scott and Middle S. –

    Earlier asked a question in the Lounge about why the latest version is not in the repository.

    I see, reading between the lines, that Ian Steward (father of Thematic) seems to not be granting access so you can upload. Odd. I wonder if Gene could help?

    Seems like all your hard work deserves to be recognized in the official repository. What about just uploading version 2.0 there under a different username?

    – Scott

    in reply to: Thematic Page Structure #4114

    sfrangos
    Participant
    in reply to: Custom 404 On New Thematic #951

    sfrangos
    Participant

    Hi All –

    I would really like to resolve this, so am willing to make it a quick paid job to fix childtheme over-rides in functions.php for the 404 page.  If you test and it works for you, then I pay to have you help me.  Otherwise this is a bug we need to fix.

    Thanks.

    – Scott

    in reply to: Custom 404 On New Thematic #858

    sfrangos
    Participant

    Hi Kathy –

    Thanks for your support as we work this out.  I have tried #382 several times and I do not get Bacon.  It is in place exactly as written at this test site:  http://client4.cmswebsitesolutions.com/?s=Search+for+Bacon&searchsubmit=Search

    For some reason, Thematic is not respecting the override.  I wonder if anyone else has tested same?

    – Scott

    in reply to: Now Yoast SEO Titles Disappear? #850

    sfrangos
    Participant

    Thanks for the update, Kathy.

     

    in reply to: Custom 404 On New Thematic #841

    sfrangos
    Participant

    Kathy — thanks for all your help, especially considering I don’t write PHP from scratch.  I promise I will make this into a tutorial for others to follow once I get it.

    I am thinking you mean that the programming pattern is:

    1.  State the override code

    2. No action init

    3. Place the custom code desired next — in this case the custom 404 page contents.

    4. Just close the override code with a concluding brace

    Correct?  If so, I must be close here, but it doesn’t run yet:

    
    //First the Override –//
    function childtheme_override_404_content(){
    
    // Next we create the Custom 404 page — //
    function my_404_content() { ?>
    <?php thematic_postheader(); ?>
    <div>
    <?php _e(‘NARTS’) ?>
    
    </div>
    <form id=”error404-searchform” method=”get” action=”<?php bloginfo(‘home’) ?>”>
    <div>
    
    <input id=”error404-s” name=”s” type=”text” value=”<?php echo wp_specialchars(stripslashes($_GET[‘s’]), true) ?>” size=”40″ />
    <input id=”error404-searchsubmit” name=”searchsubmit” type=”submit” value=”<?php _e(‘Find’, ‘thematic’) ?>” />
    </div>
    </form>
    <!– New Section –>
    <?php _e(‘Some Topics On Our Site’) ?>
    <?php wp_tag_cloud(‘smallest=15&largest=40&number=50&orderby=count’); ?>
    <?php }
    //End Custom 404 //
    } //End Over-ride //
    
    
    in reply to: Custom 404 On New Thematic #833

    sfrangos
    Participant

    Thanks Kathy, for helping me get to the bottom of this.  Tried your new code as follows, without good result (maybe I missed something?).  It did not seem to override at all — left the default page in place:

    
    function childtheme_override_404_content(){
    
    echo “bacon”;
    
    }
    add_action(‘init’,’childtheme_override_404_content’);
    
    
    in reply to: Custom 404 On New Thematic #831

    sfrangos
    Participant

    Hi Kathy –

    Thanks… trying following, but it is not over-riding yet (page remains default 404)… ideas?

    
    // First we remove the default thematic 404 page — //
    function childtheme_override_404_content() {
    remove_action(‘thematic_404′,’thematic_404_content’);
    }
    add_action(‘init’,’childtheme_override_404_content’);
    
    // Next we create the Custom 404 page — //
    function my_404_content() { ?>
    <?php thematic_postheader(); ?>
    <div>
    <?php _e(‘NARTS’) ?>
    
    </div>
    <form id=”error404-searchform” method=”get” action=”<?php bloginfo(‘home’) ?>”>
    <div>
    
    <input id=”error404-s” name=”s” type=”text” value=”<?php echo wp_specialchars(stripslashes($_GET[‘s’]), true) ?>” size=”40″ />
    <input id=”error404-searchsubmit” name=”searchsubmit” type=”submit” value=”<?php _e(‘Find’, ‘thematic’) ?>” />
    </div>
    </form>
    <!– New Section –>
    <?php _e(‘Some Topics On Our Site’) ?>
    <?php wp_tag_cloud(‘smallest=15&largest=40&number=50&orderby=count’); ?>
    <?php }
    // end thematic_404_content
    add_action(‘thematic_404′,’my_404_content’);
    
    
    in reply to: Custom 404 On New Thematic #813

    sfrangos
    Participant

    Sorry… struggling with showing code here.  Actual full function is:

    
    // First we remove the default thematic 404 page — //
    function remove_thematic_404_content() {
    remove_action(‘thematic_404′,’thematic_404_content’);
    }
    add_action(‘init’,’remove_thematic_404_content’);
    
    // Next we create the Custom 404 page — //
    function my_404_content() { ?>
    <?php thematic_postheader(); ?>
    <div>
    <?php _e(‘Apologies, but we were unable to find what you were looking for. Here are some options.’, ‘thematic’) ?>
    
    </div>
    <form id=”error404-searchform” method=”get” action=”<?php bloginfo(‘home’) ?>”>
    <div>
    
    <input id=”error404-s” name=”s” type=”text” value=”<?php echo wp_specialchars(stripslashes($_GET[‘s’]), true) ?>” size=”40″ />
    <input id=”error404-searchsubmit” name=”searchsubmit” type=”submit” value=”<?php _e(‘Find’, ‘thematic’) ?>” />
    </div>
    </form>
    <!– New Section –>
    <?php _e(‘Some Topics On Our Site’) ?>
    <?php wp_tag_cloud(‘smallest=15&largest=40&number=50&orderby=count’); ?>
    <?php }
    // end thematic_404_content
    add_action(‘thematic_404′,’my_404_content’);
    
    
    in reply to: Split: 1.01 broke my site. What now? #499

    sfrangos
    Participant

    Hello Proto & Colleagues –

    Looking at your CSS calls, I recommend you REMOVE:

    /* Default css Stylesheets */
    @import url('../thematic/style.css');

    Why? It calls the master themes stylesheed with then calls redundant stylesheets and is unnecessary in child themes.

    For example, your child theme calls reset.css and 2c-r-fixed.css. But the master theme, Thematic’s style.css, that I recommend you remove also calls the same two stylesheets, plus some others which you may or may not want to use.

    In your child themes only call those you choose from the /thematic/library/ set of options. Refer to the sample child theme for an example.  Everything you need to execute your designs may be called from the library directory.

    I am not certain how this may have contributed to the problem you first wrote about, but it should at least cut down on redundant CSS calls in the future.

    And, since the master theme calls for a 2 column right fixed layout it could conflict with other layouts you want in your child theme designs.

    Cheers –
    Scott


    sfrangos
    Participant

    Thanks Scott & Kathy –

    In the past I have used the following simple function to place a script in the head area, and thought perhaps I just needed to add conditional logic.  But I think you are now suggesting this method be discontinued in favor of enqueing? Is this because of the new version of Thematic/WP Core?

    Thanks for the site load note, Scott — I am going to try this for the new Google “Content Experiments” and they specify the head section.

    Kathy… I find if I wrap code in a blockquote tag here it doesn’t wander off to the site.

    Here’s the old way of adding scripts to the head section I referred to above:


    function childtheme_head_scripts() {?>
    //Add scripts here -- can also link to Google Font API stylesheets, etc.//
    <!--?php } add_action('wp_head','childtheme_head_scripts');

    – Scott

    in reply to: CSS Priority Issue with Thematic 1.0.1 #363

    sfrangos
    Participant

    Hi All —

    Good to see Gene and Kathy helping here so diligently.

    Malbinson — have you considered solving a different look for your home page entirely in CSS by calling a class that targets the home page? This removes the functions issue should things change in WP core or Thematic in the future.

    For example, you can target your home page like this in CSS:

    body.home {your layout code }

    Review page source for even more specific ways to use this tactic.

    – Scott

Viewing 12 posts - 1 through 12 (of 12 total)