Forum Replies Created

Viewing 20 posts - 21 through 40 (of 46 total)
  • Author
    Posts
  • in reply to: Sidebar on Front Page only? #43701
    Robertf
    Participant

    Hi Sakin,

    Thanks for your suggested “trick” with my Catch Box Pro theme. It’s worked, but I’m a little confused as to whether in “Front page displays” it should be set to “Front page” and/or “Posts page”.

    If you look at the (work-in-progress) website you’ll see that the Page I’ve created sits above the Post. I thought I might be able to hide the title and use it as a home page/website greeting, but I don’t seem to be able to do this.

    As always, any pointers would be much appreciated.

    Regards,
    Robertf

    in reply to: fonts.googleapis.com return 404 #17456
    Robertf
    Participant

    Upgrading to Catch Box Pro 2.8 removed this problem for me 😉

    in reply to: Primary Menus not semantically correct #9745
    Robertf
    Participant

    Thanks, Sakin. I have found the file and will give it a tweak to see if I get a better result, “semantically” speaking 😉
    Regards,
    Robertf

    in reply to: Responsive Menu for blog posts #7159
    Robertf
    Participant

    Hi again Sakin,

    I’ve been side tracked but have finally got back to my blog site and have spent the past couple of days trying to resolve the problem of TinyNav displaying the last menu item as the current-menu-item.

    As you said, other themes have this problem. I found a suggested solution here:

    http://themeid.com/help/discussion/4566/tinynav-displays-last-menu-item-and-no-dropdown-icon/p1

    http://themeid.com/help/discussion/4351/tinynav-current-items-for-categories/

    I used the code from 2nd link to modify catchbox-menu.min as follows:

    jQuery(function(){ jQuery(“#access .menu”).tinyNav({active:”current-menu-item”,          header:” “})})

    The result is a far more workable option for me, where “Navigation” is displayed in the responsive menu, from which you can make your menu selection. I would prefer something more user friendly than “Navigation”, but it is better than the wrong current-menu-item being displayed.

    I will post a link to my blog site … when I finally finish it!

    Regards, Robertf

    in reply to: Responsive Menu for blog posts #5886
    Robertf
    Participant

    I take your point, Sakin, your themes offer more functionality than a plug-in, but the responsive menu part of your themes is a very important feature. Somehow the tinynav plug-in manages to get it to work, with no surprises for the active menu selection when you do searches, or select blog tags/categories, or select the blog post itself. Perhaps I’m being niaive, but if it can do it, using tinynav.js, I’d expect theme can do it, too.

    Thanks for your help to date.

    Regards, Robertf

    in reply to: Responsive Menu for blog posts #5715
    Robertf
    Participant

    Hi Sakin,

    The demo link displays “Login” as the selected/active menu item, which is the last menu item in the list. And if you select an item, like Home, and then search for something, like “Catch Box Pro”, it again displays “Login”.

    This is exactly what happens in my case and, where my real problem is, if you select a post from the front/home page listing of recent posts.

    But this stopped happening when I installed and activated the TinyNav plug-in. So again, my thoughts are that it’s doing something different with it tinynav.js library routines and if you can work out what it is or perhaps download the latests libraries from tinynav.js  then this may resolve our problem with the Catch Box Pro menu.

    Regards, Robertf

    in reply to: Responsive Menu for blog posts #5633
    Robertf
    Participant

    Sakin, An update for you on some testing I’ve done that hopefully will point you towards a solution to this problem.

    I downloaded the TinyNav plugin from WordPress (http://wordpress.org/extend/plugins/tinynav), activated it and found that it doesn’t have the problem that exist with the version in Catch Box Pro.

    It did display 2 responsive menus, one’s obviously is the Catch Box Pro menu, the other the TinyNav plug-in. I didn’t bother working out how to stop the double-up display, I just wanted to see what would happen when I selected a post, or clicked on a tag/category, or did a search.

    The results were perfect for all cases. The active/selected item in the menu displayed as Home for posts or the associated sub-menu item for pages.

    The interesting thing, is that it worked perfectly for both menus, the TinyNav plug-in AND the Catch Box Pro menu.

    Now, I’m not a coder, but it suggests to me that there’s something in the TinyNav plug-in library that does the “right” thing when working out the active/selected menu item, whereas the code is not right in the Catch Box Pro responsive menu.

    By the way, I tested deactivating the TinyNav plug-in and the original problem came back.

    I hope this is helpful. I know there’s a lot of information to take in – please let me know if you need any further explanation.

    Regards, Robertf

     

    Robertf
    Participant

    I had the same problem but followed Sakin’s instructions to use a Custom Menu. Now works fine for me 😉

    in reply to: PHP file for front page blog posts listing #5148
    Robertf
    Participant

    Thanks, Sakin. I did look at content.php, but didn’t look deep enough!

    I found the first code for entry-title,  <h2 class=”entry-title”>, saw that it wasn’t an h1 as displayed for the blog entry title on the home page
    listing, so I stopped looking.

    Following your suggestion I searched further and found this code under the is_sticky() check:
    <h1 class=”entry-title”>
    I’ve changed this to h2 and now it’s working perfectly (that is, as I want it to).

    Sorry for not looking hard enough in the first instance and thanks again for your help.

    Regards, Robertf
     

    in reply to: PHP file for front page blog posts listing #5100
    Robertf
    Participant

    So to recap, all I need to know is the name of the php file that contains the function that lists the extracts of the blog posts on the home page.

    The title for each blog post is wrapped in an H1 tag and I simply want to change this so that there’s only one H1 tagged element on the home page.

    Thanks in advance.

    Regards, Robertf

    in reply to: PHP file for front page blog posts listing #5095
    Robertf
    Participant

    Sorry, Sakin, the “thanks” was for helping me with the Site Title H1 tag problem.

    My “quick question” was about the summary listing of blog posts on the home page. The title for each of these posts is wrapped in an H1 tag and I want to change this. But I can’t find the right PHP file to edit (and believe me, I’ve spent a couple of hours tweaking different ones in the Catch Box Pro theme folder without success!).

    Thanks again and sorry for confusing my earlier fixed problem with the current one.

    Regards,  Robertf

    in reply to: Multiple H1 tags on blog posts & pages #5029
    Robertf
    Participant

    Sakin, I will write a review of the Catch Box Pro theme, which I have found to be an excellent base for a responsive template and one that can be customised without too much technical know-how … except for the unhooking process, which I think is a WordPress issue, not a problem with the theme 😉

    Regards, Robert

    in reply to: Multiple H1 tags on blog posts & pages #5026
    Robertf
    Participant

    Thanks, Sakin.

    I added your functions.php to my Child Theme and it works as I’d hoped it would. However, I am glad that you wrote it because the unhooking of the default functions looked far more technical than I thought it would be!

    Hopefully that will be the last bit of customising I need to do.

    Regards, Robertf

    PS. Will give you a big plug in the WP Themes forum 😉

     

    in reply to: Multiple H1 tags on blog posts & pages #4996
    Robertf
    Participant

    Hi Sakin, No, unfortunately the Child Theme remove/add_action is still resulting in 2 headers being displayed. I have emailed you a zipped copy of my Catch Box Pro & Child Theme folders.

    I do appreciate that it’s hard to work through the code on the forum & trust that the zip copy helps.

    Once again, thanks for your assistance.

    Regards, Robertf

    in reply to: Multiple H1 tags on blog posts & pages #4960
    Robertf
    Participant

    PS. Sorry, Sakin, I’ve just notice that I’d commented out the add_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails_child’, 12 );

    This was just so I could get on with testing, until I worked out how to do use the Child Theme function without displaying the double Header.

    Regards, Robert

    in reply to: Multiple H1 tags on blog posts & pages #4959
    Robertf
    Participant

    Hi Sakin, The following is a copy of functions.php from my Child Theme:

    Regards, Robertf

    <?php

    /**

    * Child Theme overrides for Catch Box Pro functions and definitions

    *

    * When using a child theme (see http://codex.wordpress.org/Theme_Development and

    * http://codex.wordpress.org/Child_Themes), you can override certain functions

    * (those wrapped in a function_exists() call) by defining them first in your child theme’s

    * functions.php file. The child theme’s functions.php file is included before the parent

    * theme’s file, so the child theme functions would be used.

    *

    * Functions that are not pluggable (not wrapped in function_exists()) are instead attached

    * to a filter or action hook. The hook can be removed by using remove_action() or

    * remove_filter() and you can attach your own function to the hook.

    *

    * We can remove the parent theme’s hook only after it is attached, which means we need to

    * wait until setting up the child theme:

    *

    * <code>

    * add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );

    * function my_child_theme_setup() {

    *     // We are providing our own filter for excerpt_length (or using the unfiltered value)

    *     remove_filter( ‘excerpt_length’, ‘catchbox_excerpt_length’ );

    *     …

    * }

    * </code>

    *

    * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API.

    *

    * @package Catch Themes

    * @subpackage Catch_Box_Pro

    * @since Catch Box Pro 1.0

    */

    /**

    * Stop H1 tags from being set for Site Title on all pages:

    *

    * Header Details including Site Logo, Title and Description

    *

    * @Hooked in catchbox_headercontent in Catch Box Pro functions.php.

    * @since Catch Box 1.2.1

    *

    */

    remove_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails’, 15 );

    /**

    *add_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails_child’, 12 );

    */

     

    function catchbox_headerdetails_child() { ?>

    <div class=”logo-wrap clearfix”>

    <?php

    // Check to see if the header image has been removed

    $header_image = get_header_image();

    if ( ! empty( $header_image ) ) : ?>

    <div id=”site-logo”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>

    <img src=”<?php header_image(); ?>” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” />

    </a></div>

    <?php endif; // end check for removed header image ?>

    <hgroup id=”site-details”>

    <h1 id=”site-title”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></a></h1>

    <h2 id=”site-description”><?php bloginfo( ‘description’ ); ?></h2>

    </hgroup>

    </div><!– .logo-wrap –>

    <?php }

    /**

    * Don’t print Author details & link for single author blog, so modify following code used in content.php etc:

    * printf( __( ‘<span class=”sep”>Posted on </span><a href=”%1$s” title=”%2$s” rel=”bookmark”><time class=”entry-date updated” datetime=”%3$s” pubdate>%4$s</time></a><span class=”by-author”> <span class=”sep”> by </span> <span class=”author vcard”><a class=”url fn n” href=”%5$s” title=”%6$s” rel=”author”>%7$s</a></span></span>’, ‘catchbox’ ),

    */

    function catchbox_posted_on() {

    printf( __( ‘<span class=”sep”>Posted on </span><a href=”%1$s” title=”%2$s” rel=”bookmark”><time class=”entry-date updated” datetime=”%3$s” pubdate>%4$s</time></a></span></span>’, ‘catchbox’ ),

    esc_url( get_permalink() ),

    esc_attr( get_the_time() ),

    esc_attr( get_the_date( ‘c’ ) ),

    esc_html( get_the_date() ),

    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),

    esc_attr( sprintf( __( ‘View all posts by %s’, ‘catchbox’ ), get_the_author() ) ),

    get_the_author()

    );

    }

     

    in reply to: Multiple H1 tags on blog posts & pages #4948
    Robertf
    Participant

    Hi Sakin, I tried your code suggestion, but the results is that the header is displayed twice, as per the source code extract:
    <div id=”header-content” class=”clearfix“>
    <div class=”logo-wrap clearfix“>
    <div id=”site-logo“><a href=”http://192.168.0.192/wordpress/” title=”RobertFairhead.com” rel=”home“>
    <img src=”http://192.168.0.192/wordpress/wp-content/uploads/cropped-head-robert-bw-sm22.png” width=”103” height=”140” alt=”RobertFairhead.com” />
    </a></div>
    <hgroup id=”site-details“>
    <h1 id=”site-title“><a href=”http://192.168.0.192/wordpress/” title=”RobertFairhead.com” rel=”home“>RobertFairhead.com</a></h1>
    <h2 id=”site-description“>The Tall and True Tales of a Midlife Man</h2>
    </hgroup>
    </div><!– .logo-wrap –>
    <div class=”logo-wrap clearfix“>
    <div id=”site-logo“><a href=”http://192.168.0.192/wordpress/” title=”RobertFairhead.com” rel=”home“>
    <img src=”http://192.168.0.192/wordpress/wp-content/uploads/cropped-head-robert-bw-sm22.png” width=”103” height=”140” alt=”RobertFairhead.com” />
    </a></div>
    <hgroup id=”site-details“>
    <h1 id=”site-title“><a href=”http://192.168.0.192/wordpress/” title=”RobertFairhead.com” rel=”home“>RobertFairhead.com</a></h1>
    <h2 id=”site-description“>The Tall and True Tales of a Midlife Man</h2>
    </hgroup>
    </div><!– .logo-wrap –>
    <div id=”sidebar-header-right” class=”widget-area sidebar-top clearfix“>
    <aside id=”quotescollection” class=”widget quotescollection_widget“><div id=”quotescollection_randomquote-0” class=”quotescollection_randomquote“><p><q>A day without laughter is a day wasted.</q> <cite>&mdash;&nbsp;<span class=”quotescollection_author“>Charlie Chaplin</span></cite></p><script type=”text/javascript“>quotescollection_timer(0, 2, 1, 1, ”, 500, 60, 1);</script></div></aside><aside id=”search-3” class=”widget widget_search“> <form method=”get” id=”searchform” action=”http://192.168.0.192/wordpress/“>
    <label for=”s” class=”assistive-text“>Search</label>
    <input type=”text” class=”field” name=”s” id=”s” placeholder=”Search” />
    <input type=”submit” class=”submit” name=”submit” id=”searchsubmit” value=”Search” />
    </form>
    </aside></div> <!– #sidebar-top –>
    </div><!– #header-content –>
    I researched what may be causing this and found 2 possible problems:

    1) The priority of the remove_action needs to match the priority used in the add_action. Therefore, I modified your suggested code as follows, but this had no effect: remove_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails’, 15 );

    2) The remove_action can be done only after the action is added. I wondered if this is the problem, if the Catch Box Pro add_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails’, 15 ) is not called till after my remove_action( ‘catchbox_headercontent’, ‘catchbox_headerdetails’, 15 )?

    BTW: I have put the your suggested code fix and my modified catchbox_headerdetails_child() in functions.php in my Child Theme.

    I hope this is enough to help you to work out what I’m doing wrong.

    Regards, Robertf

     

    in reply to: Multiple H1 tags on blog posts & pages #4843
    Robertf
    Participant

    Thanks, Sakin. Will try your suggestion and let you know how it works.

    Regards,

    Robertf

    in reply to: Catch Box Pro Child – missing Header Image #4664
    Robertf
    Participant

    Hi Sakin,

    Thanks for your prompt response.

    I created a blank WordPress site (without plug-ins and custom css etc) and recreated the problem and found the solution. In short, I needed to go to the Header option in the Admin page and reload/reset the Custom Header. Once I did this, then the Header Image option reappeared in the Customize Child Theme page.

    I’m new to WordPress, having built a few websites in Joomla, so I’m still working out the differences between the 2 CMSes and where and how to set override options, like Child Themes.

    Thanks again for your assistance – knowing that it worked for you made me dig further to work out why it wasn’t working for me 😉

    Regards,

    Robertf

     

     

    in reply to: iPhone 4s iOS 6.1.2 issues? #4265
    Robertf
    Participant

    @Sakin: Followed your instructions and all works well. Thanks for your help 🙂

    Regards,

    Robertf

Viewing 20 posts - 21 through 40 (of 46 total)