Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • I know this is late to the party, but hopefully it helps someone else. I was having the same issue as Callum and eventually worked out it’s because my file structure has some symlinks. Specifically I am using a bitnami stack, and WP is installed in /opt/bitnami/wordpress but the wp-content directory points to /bitnami/wordpress.

    The issue is in load_template inside class-shortcodes.php. The if test at the end of this function will only load the template file if the directory structure exactly matches the expected normalised path – mine doesn’t because of the symlinks. I just commented out the if test here so that the file is always included, and got my custom template to load fine.

    Obviously this is not ideal since I will have to re-make the change whenever there’s an update. Am hoping the UM team see this and can implement a proper fix, but hopefully it helps others in the meantime.

    Thread Starter Jo Batkin

    (@jobatkin)

    Found another one too. Same problem with the wcff_before_inserting_order_item_meta filter in wcff-order-handler.php. The arguments are in the wrong order, preventing anyone from actually using the filter.

    It should be changed from this:

    
            /* Let other plugins override this value - if they wanted */
            if(has_filter("wcff_before_inserting_order_item_meta")) {
            	$wcff_order_item_meta= apply_filters("wcff_before_inserting_order_item_meta", $this->item_id, $_field, $wcff_order_item_meta );
            }
    

    to this:

    
            /* Let other plugins override this value - if they wanted */
            if(has_filter("wcff_before_inserting_order_item_meta")) {
            	$wcff_order_item_meta= apply_filters("wcff_before_inserting_order_item_meta", $wcff_order_item_meta, $this->item_id, $_field );
            }
    

    Can you please review all apply_filters calls and fix for the next version?

    Thread Starter Jo Batkin

    (@jobatkin)

    Thanks for the reply and fixing the excerpt length in the next version.

    The wonky formatting in the Customizer must have just been a caching thing as it is working fine again now and I didn’t change anything.

    Thread Starter Jo Batkin

    (@jobatkin)

    It’s a dev site so I’m not allowed to post the link publicly. I also used the Really Simple Gallery Widget plugin to manage the images in the slider, and then just had to use some filters to modify the classes it outputs to match those required by the Bootstrap Carousel, and add a little bit of jquery to kick it off.

    Thread Starter Jo Batkin

    (@jobatkin)

    In the meantime I have managed to get it working. Once I realised that the carousel uses the Twitter Bootstrap carousel, all I had to do was follow the instructions in this link and give my slider a unique id, and it works! ??

    Thread Starter Jo Batkin

    (@jobatkin)

    One way of doing this that would be very handy is to add a new Slider Widget, to let you select a slider. Then you could add this to any existing widget area, or just add another widget area of your own to let you place it wherever you want!

    Thread Starter Jo Batkin

    (@jobatkin)

    That was kind of my question … is there a shortcode or function or something in Customizr code that I can call to create a second slider? so it will work/transition the same as the main one?

    Thread Starter Jo Batkin

    (@jobatkin)

    Wow, you’re a wonder. Something that simple! Thank you so much. It is working perfectly ??

    Thread Starter Jo Batkin

    (@jobatkin)

    I only tried to put it in functions.php because it wasn’t doing anything in the custom page template ??

    That code in functions.php is removing the heading from the content, but is not adding it before the main wrapper.

    If I replace ‘__before_main_wrapper’ with ‘__before_main_container’ then the heading is back, and has been moved out of the main content loop, but is still within the page wrapper so it doesn’t get full width.

    Lastly I tried using add_action( '__after_header', array( TC_headings::$instance, 'tc_content_headings') ); which finally worked! ?? My page heading is now outside of the main page wrapper, full width across the page, and I have a right sidebar widget.

    Thanks to all for your help.

    I also found it very useful to search the Customizr code for ‘add_action’ to find a list of hooks.

    Thread Starter Jo Batkin

    (@jobatkin)

    d4z_c0nf:

    I am also trying to use your code, to move my page header outside of the page wrapper to allow it to be full width. Unfortunately the remove/add action code, either the top of my page template, or in my child theme functions.php, doesn’t seem to do anything. This is what I’ve got:

    remove_action( '__before_content', array( TC_headings::$instance,  'tc_content_headings') );
    add_action( '__before_main_wrapper', array( TC_headings::$instance, 'tc_content_headings') );

    and it neither removes the existing heading nor adds the new one to the new place.

    Is it something to do with using a static instance of TC_headings instead of $this, as used when defining it in class-content-headings.php do you think?

    Has anyone else had success moving the heading around like this?
    Wasn’t sure if I should start a new topic or not, since I’m referring to a reply.

    Thread Starter Jo Batkin

    (@jobatkin)

    Thanks anyway. I appreciate your replies.

    Thread Starter Jo Batkin

    (@jobatkin)

    sure!

    also do you know where there’s a list of all of the hooks you can use with Customizr? e.g., __before_content, __before_main_container, etc. I have been looking but without any luck so far and it would really be useful.

    Thread Starter Jo Batkin

    (@jobatkin)

    Great idea, thanks! i think that would work well, but my current solution is also working so hopefully someone else will be able to use it.

    Thread Starter Jo Batkin

    (@jobatkin)

    I’ve ended up going with a custom widget floated to the right hand side of the page, instead of moving the sidebar.

    For anyone who’s interested, here’s the code I added.

    In my child theme functions.php:

    // Adds a widget area.
    if (function_exists('register_sidebar')) {
        register_sidebar(array(
        'name' => 'Right Contact Area',
        'id' => 'contact-widget',
        'description' => 'Contact area on the right hand side of all pages',
        'before_widget' => '<div class="widget contact-widget">',
        'after_widget' => '</div>',
        'before_title' => '<h2>',
        'after_title' => '</h2>'
        ));
    }
    
    // Place the widget area after the content header, for all pages except home
    add_action ('__after_content', 'add_contact_widget_area', 0);
    function add_contact_widget_area() {
        if (function_exists('dynamic_sidebar') && !is_front_page()) {
        	dynamic_sidebar('Right Contact Area');
        }
    }

    and then in my child theme style.css:

    .home .entry-content { width: 100%; float: none; }
    .entry-content { width: 70%; float: left; }
    .contact-widget { width: 319px; margin-left: 20px; float: right; }

    I would also love the feature of showing a paged list of testimonials in the widget instead of transitioning! Any eta on this feature as yet?

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