Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • I know that it is another option ?? I looked at both but chose this one because it left the formatting in a manner more pleasing to my eye.

    When i was working on my page I just added css for the item that i didnt want to see. I this case i added

    /*
     * Remove the post type icons from titles
     */
    .format-icon:before {
    visibility:hidden;
    }

    if you have a child theme then put it in your style.css otherwise put it in the custom css field at the bottom of the Customiz’it! page.

    Oh also DeaJae, The line
    <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
    is the line if coad that i traced down is responsible for creating the line
    <div class="<?php span6 article-container">
    It will also work for all other types of screenlayout that the theme might generate.

    If you want to remove the sidebar because it is inserted by woocommerce then put
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
    in to your functins.php file in your child theme.

    Ok there are three pieces of code in the post i wrote.

    do one of either create the woocommerce.php file from the first box

    OR

    put the second box into your functions.php file

    If woocommerce.php file exists it will not look in the functions.php file for the answer so the functions file will be redundant.

    I found that woocommerce still puts in its own sidebar and that was messing with the layout so i added

    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
    to fix that.

    I cant say why the author of this theme chose to do it this way but if you are using a touch screen device then it does make sense to have it this way.It is counter intuitive to touch the parent menu entry to open the menu and then choose a page . I have seen that people just expect it to close the menu again so it doesn’t get selected.

    This post suggests that it is a design decision rather than a bug and i understand why i might be this way.
    It says to just repeat the parent in the child list.

    The answer “To remove Icon preceding Page Title Only” above seems to be trying to do a lot of things. I’m wondering what it is mennt to achieve. can you explain it to me because i just used

    .format-icon:before {
    display:none;
    }

    I also experimented with

    .format-icon:before {
    visibility:hidden;
    }

    one takes the icon out but leaves the formatting and spacing and the other takes out the icon and the space/formating that came with it.

    Ok so the short answer to make the woocommerce.php put in to it the following code but that’s not quite all of it.

    <?php
    /*
    Template Name: Woocommerce Page
    */
    get_header();
       do_action( '__fp_block' );
       do_action( '__breadcrumb' );?>
         <div class="container" role="main">
           <div class="row">
             <?php do_action( '__sidebar' , 'left' );?>
             <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
               <?php woocommerce_content(); ?>
             </div>
    	 <?php    do_action( '__sidebar' , 'right' );?>
           </div><!--#row -->
         </div><!-- #container -->
       <?php
    get_footer();
    ?>

    you also need to add this line to the functions.php
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);

    And the fun way To do this so that you wont loose anything when you upgrade the theme is to create a child theme its easy, if you don’t know how look here then add the following to the functions.php in your child theme.

    /*
     * Adding WooCommerce theme support to this theme.
     */
    remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
    remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
    
    remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
    
    function my_theme_wrapper_start() {
     do_action( '__fp_block' );
        do_action( '__breadcrumb' );
          ?>
            <div class="container" role="main">
                <div class="row">
                    <?php
                        do_action( '__sidebar' , 'left' );?>
    		  <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
    			  <?php
    }
    
    function my_theme_wrapper_end() {
      ?></div><!--.article-container --><?php
       do_action( '__sidebar' , 'right' );
                    ?>
                </div><!--#row -->
            </div><!-- #container -->
        <?php
    }
    
    add_theme_support( 'woocommerce' );

    It works good for me.

    I started with a fresh install of wp3.6 and Customizr. So faar its going really well.

    Care to share?

    I’m just looking at the same thing for my site. The easiest way that I’ve seen so far is just to use a shortcode plugin like Posts for Page or Posts in Page. Have a look at the documentation and see if one suits your needs. Don’t make the mistake of putting the shorcode in to the visual editor or sometimes it gets surrounded by <code> </code>blocks and so the formatting gets a bit weird.

    If anyone has any better ideas I’d love to hear them.

    The advice above is accurate it is just missing something.

    If you go to view the post page that you would like to remove the date/author from in your web browser. Using what ever functionality the browser has to look at the raw html code search the code for the author name .

    you should find something that looks similar to

    <h2 class="post-meta"> by <a href="https://www.BlaaBlaaBlaa.com/author/jason/" title="Posts by Jason" rel="author">Jason</a>
    &nbsp;&bull;&nbsp;
    <a class="date-anchor" href="https://www.BlaaBlaaBlaa.com

    …………

    now obviously if your name is not Jason then the title Posts by XXX will say something different ??
    The important thing to see here is the class entry what ever that is in your page code. Here it is “post-meta” also note the class entry “date-anchor”

    if you add to your style.css the lines

    .class-name{
    display: none;
    }

    that class will not display any more (unless it is overriden by a later css entry). so for me the entry
    ‘.post-meta {
    display: none;
    }’

    removed the date and author
    and looking around a bit more in the code the entry
    ‘.post-category
    {
    display: none;
    }’
    hides the category entries before the title.

    now if you wanted to remove only the date then the entry
    ‘.date-anchor
    {
    display: none;
    }

    would do that.

    The class names are not necessarily set in the WordPress implementation but depend on the mood and imagination of the theme creator on the day its css files are written. [This last allegation may be unsubstantiated*]

    happy hacking.

    *the allegation about implementation not imagination, I’m sure programmers have imagination, I like to think i do.

Viewing 13 replies - 1 through 13 (of 13 total)