• Resolved gregbast1994

    (@gregbast1994)


    Hi, great plugin works almost ‘perfect’.

    I notice there is no way to control where the brands are displayed within the loop. Is there an easy way to control that with a filter or hook?

    I am trying to get the brand img to show above the title.

    Thanks so much for your hardwork,
    Gregory Bastianelli

    Array
    (
    [home_url] => https://rawr.ur54.com
    [site_url] => https://rawr.ur54.com
    [version] => 3.2.6
    [wp_version] => 4.9.3-alpha-42607
    [wp_multisite] =>
    [wp_memory_limit] => 40M
    [wp_debug_mode] => 1
    [wp_cron] => 1
    [language] => en_US
    [server_info] => LiteSpeed
    [php_version] => 7.0.27
    [php_post_max_size] => 8M
    [php_max_execution_time] => 30
    [php_max_input_vars] => 10000
    [max_upload_size] => 5242880
    [default_timezone] => UTC
    [theme] => Array
    (
    [name] => damn
    [version] => 1.0.0
    [parent_theme] =>
    )

    [active_plugins] => Array
    (
    [0] => hello.php
    [1] => perfect-woocommerce-brands/main.php
    [2] => woocommerce-gateway-paypal-powered-by-braintree/woocommerce-gateway-paypal-powered-by-braintree.php
    [3] => woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
    [4] => woocommerce-services/woocommerce-services.php
    [5] => woocommerce/woocommerce.php
    [6] => wordpress-beta-tester/wp-beta-tester.php
    [7] => wordpress-importer/wordpress-importer.php
    )

    [pwb_options] => Array
    (
    [version] => 1.6.0
    [wc_pwb_admin_tab_brand_single_position] => before_title
    [old_wc_pwb_admin_tab_slug] => brand
    [wc_pwb_notice_plugin_review] =>
    [wc_pwb_admin_tab_slug] =>
    [wc_pwb_admin_tab_brand_desc] => yes
    [wc_pwb_admin_tab_brand_single_product_tab] => yes
    [wc_pwb_admin_tab_brands_in_loop] => brand_image
    [wc_pwb_admin_tab_brands_in_single] => brand_image
    [wc_pwb_admin_tab_brand_logo_size] => shop_thumbnail
    )

    )

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter gregbast1994

    (@gregbast1994)

    I was able to achieve this by editing class-perfect-woocommerce-brands.php:20, and changing the hook and priority to how I need it.

    I am fairly new to WP so forgive me, but is there a proper way of using filters to achieve this same goal without editing the plugin itself.

    Again, Awesome plugin and does exactly what I wanted.

Viewing 1 replies (of 1 total)
  • The topic ‘Control brands within the loop’ is closed to new replies.