Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Try to put this code in to one function file only…
    either parent or child..
    Meanwhile it should effect if you set number of blog per page to 48 from admin.

    You welcome ..!!!

    Hi,

    add following code into your function.php file:

    add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 48;’));

    You need to fix post per page in admin at Settings >> Reading section.

    Forum: Plugins
    In reply to: [WooCommerce] Product Page

    It means add product in woo commerce and select category XYZ before save the product.So product would assign to category XYZ.

    Apply Below code in .htaccess for enable caching without plugin

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css A31536000
    ExpiresByType application/x-javascript A31536000
    ExpiresByType text/x-component A31536000
    ExpiresByType text/html A3600
    ExpiresByType text/richtext A3600
    ExpiresByType image/svg+xml A3600
    ExpiresByType text/plain A3600
    ExpiresByType text/xsd A3600
    ExpiresByType text/xsl A3600
    ExpiresByType text/xml A3600
    ExpiresByType video/asf A31536000
    ExpiresByType video/avi A31536000
    ExpiresByType image/bmp A31536000
    ExpiresByType application/java A31536000
    ExpiresByType video/divx A31536000
    ExpiresByType application/msword A31536000
    ExpiresByType application/vnd.ms-fontobject A31536000
    ExpiresByType application/x-msdownload A31536000
    ExpiresByType image/gif A31536000
    ExpiresByType application/x-gzip A31536000
    ExpiresByType image/x-icon A31536000
    ExpiresByType image/jpeg A31536000
    ExpiresByType application/vnd.ms-access A31536000
    ExpiresByType audio/midi A31536000
    ExpiresByType video/quicktime A31536000
    ExpiresByType audio/mpeg A31536000
    ExpiresByType video/mp4 A31536000
    ExpiresByType video/mpeg A31536000
    ExpiresByType application/vnd.ms-project A31536000
    ExpiresByType application/x-font-otf A31536000
    ExpiresByType application/vnd.oasis.opendocument.database A31536000
    ExpiresByType application/vnd.oasis.opendocument.chart A31536000
    ExpiresByType application/vnd.oasis.opendocument.formula A31536000
    ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
    ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
    ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
    ExpiresByType application/vnd.oasis.opendocument.text A31536000
    ExpiresByType audio/ogg A31536000
    ExpiresByType application/pdf A31536000
    ExpiresByType image/png A31536000
    ExpiresByType application/vnd.ms-powerpoint A31536000
    ExpiresByType audio/x-realaudio A31536000
    ExpiresByType image/svg+xml A31536000
    ExpiresByType application/x-shockwave-flash A31536000
    ExpiresByType application/x-tar A31536000
    ExpiresByType image/tiff A31536000
    ExpiresByType application/x-font-ttf A31536000
    ExpiresByType audio/wav A31536000
    ExpiresByType audio/wma A31536000
    ExpiresByType application/vnd.ms-write A31536000
    ExpiresByType application/vnd.ms-excel A31536000
    ExpiresByType application/zip A31536000
    ExpiresByType text/js A31536000
    ExpiresByType text/x-javascript A31536000
    </IfModule>
    ## EXPIRES CACHING ##

    Hi,

    If you deactivate W3TC plugin you need to enable caching by .htaccess and need to apply few .htaccess rules to make loading fatster.

    Cheers..!!

    hi,

    Try Mmm Simple File List plugin,

    https://www.ads-software.com/support/plugin/mmm-file-list

    You may find it useful to sort list all PDF .

    Cheers..!!!

    Hi,

    -As Jackie suggested first try to deactivate all plugin and activate one by one,so you may find particular plugin which cause an error.

    -Then if problem persist try to switch theme to default as it may happen due to theme specific errors.

    – Re-uploading the WP-admin and WP-include folders from fresh download of word press.

    -Reset your permalink back to default and check it, if it would be solve your problem then check and review permalink codex in word press.

    Forum: Plugins
    In reply to: [WooCommerce] Product Page

    As i understand you want to reproduce different HTML format for another single product page.
    Assume there is “woocommerce” folder in your root theme directory.

    Create category XYZ and assign product from admin.Then copy content-single-product.php from woo commerce plugin folder to “woocommerce” in theme folder.
    and rename it with content-single-product-XYZ.php

    Copy single-product.php from plugin folder to “woocommerce” and edit its line 28 from:
    wc_get_template_part( ‘content’, ‘single-product’ );
    to
    $category = wp_get_post_terms( get_the_ID(), ‘product_cat’ );
    if ($category[0]->term_id == ‘term_id’)
    {
    woocommerce_get_template_part( ‘content’, ‘single-product-seperateCategory’ );
    }
    else
    {
    woocommerce_get_template_part( ‘content’, ‘single-product’ );
    }

    where term_id should be replace with term id of category XYZ.

    Use Qtranslate plugin and,

    Try qTranslate support for WooCommerce
    https://www.ads-software.com/plugins/qtranslate-support-for-woocommerce/
    or
    Try
    IM8 qTranslate WooCommerce
    https://www.ads-software.com/plugins/im8-qtranslate-woocommerce/installation/

    Hi,
    You can add more details about product by following wordpress hooks:
    1)woocommerce_product_write_panel_tabs
    2)woocommerce_product_write_panels
    3) woocommerce_process_product_meta

    and you can display by,

    woocommerce_after_single_product_summary

    wordpress hook to display ur fields beside other details.

    Try plugin if you do not want to modify code in woo commerce,

    Plugin : WooCommerce Improved External Products

    you can edit :
    woocommerce\templates\single-product\add-to-cart\external.php

    online 16 add target=”_blank” to a tag.
    Cheers!!!

    Forum: Plugins
    In reply to: [WooCommerce] Cart in Menu

    Hi,
    Replace your code by following,
    <nav id=”site-navigation”>
    <?php _e(‘Menu’, ‘codeus’); ?>
    <?php if(has_nav_menu(‘primary’)) { wp_nav_menu(array(‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu styled main_menu dl-menu’, ‘container’ => false, ‘walker’ => new Codeus_Menu_Walker,’exclude’ => $pageId)); } ?>
    </nav>

    Where $pageId should be replace by id of your carting page.

    Forum: Plugins
    In reply to: [WooCommerce] Cart in Menu

    hi,
    you can pass argument into primary menu function ‘exclude’ =>$pageId which will remove perticular page from primary menu.
    wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’,’exclude’ => $pageId ) );

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