Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter kastali_bleikr

    (@kastali_bleikr)

    Yay! Thank you so much Rocco!!!

    \ o /

    This code worked:

    //we hook the code on the wp_head hook, this way it will be executed before any html rendering.
    add_action ( 'wp_head' , 'move_my_slider');
    function move_my_slider() {
        if ( !is_page() || tc__f('__is_home') )
            return;
        //we unhook the slider
        remove_action( '__after_header' , array( CZR_slider::$instance , 'czr_fn_slider_display' ));
    
        //we re-hook the slider. Check the priority here : set to 0 to be the first in the list of different actions hooked to this hook.
        add_action( '__before_content' , array( CZR_slider::$instance , 'czr_fn_slider_display' ), 20);
    }
    Thread Starter kastali_bleikr

    (@kastali_bleikr)

    So I’m going to post what I managed to figure out for anyone else that needs help with this issue.

    First off, I did manage to find the pages that Menaka posted via the Internet Archive’s WayBack Machine. Links below:

    How to Customize the 404 page

    Modify Layout 404 and Search

    Customizing the 404 page

    Using these pages plus some other resources I managed to build some snippets that seem to be working! I’m going to post them below so that others might have something to work with if they need to make similar changes. ??

    Code to alter 404 Page Contents
    Make sure to put your custom classes, text, and the full url path to your image for it to work.

    //Code to alter 404 Page
    add_filter('tc_404_content', 'my_404_content');
    function my_404_content(){
        $text_404 = '<p class="your-custom-class">Your custom text</p>';
    	$image_url = 'https://www.yourwebsite.com/path/to/your/image.png';
        return sprintf('<img alt="Not Found" class="your-custom-class" src="%1s">%2$s',
            $image_url,
            $text_404
        );
    }

    Code to alter No Result Page Contents
    Make sure to put your custom classes, text, and the full url path to your image for it to work.

    //Code to alter No Result Page
    add_filter('tc_no_result_content', 'my_no_result_content');
    function my_no_result_content(){
        $text_noresult = '<p class="your-custom-class">Your custom text</p>';
    	$image_url = 'https://www.yourwebsite.com/path/to/your/image.png';
        return sprintf('<img alt="No Results Found" class="your-custom-class" src="%1s">%2$s',
            $image_url,
            $text_noresult
        );
    }

    Code to alter Search Results Page
    This code basically just removes the search box from the Search Results page. Our search is always visible and we didn’t need the search results page to display another one.

    // Removes search box from search results page
    add_filter('tc_search_results_header_content','my_results_header');
    function my_results_header($content) {
    
    return substr($content,0,strpos ($content,"<form",0));
    }

    I hope this helps! I’m still working on getting a handle on WordPress hooks, functions, and PHP in general. I would suggest anyone that tries the above code, do so first on a test site.

    In fact anytime you mess with the functions.php, you should probably test it on a development site first. PHP isn’t very forgiving and if you screw up, you’ll probably get the white screen of death. That can be fixed by using an FTP or if you host provides it the CPanel, removing whatever messed up code is in the functions.php and re-saving it. On a local test site or development server you can experiment, make mistakes, and not worry about a live site going down.

    Thread Starter kastali_bleikr

    (@kastali_bleikr)

    Well the bug that was introduced with 4.7.1 was supposed to be fixed with the release of 4.7.2, however the fix was not implemented in 4.7.2. So if you had the issue, chances were the issue was going to persist when you upgraded to 4.7.2 and the plugin had to remain. They updated the plugin to work with 4.7.2 and so we assumed the fix would come when 4.7.3 was released. A few days ago the ticket for this bug had been set to closed, but I’ve seen a few posts here and there where people are still having issues uploading files even in 4.7.3. So I’m not really sure if A. the fix was implemented or B. if the fix was implemented did actually fix everything.

    Thread Starter kastali_bleikr

    (@kastali_bleikr)

    Sorry for the long delay in my response. The past few months have been kinda crazy.

    I no longer get redirected but it seems you have changed your support system, as the support forum is now https://docs.presscustomizr.com/

    Would the information in the links you previously provided still be located somewhere in the documentation of that site? The links just go to https://docs.presscustomizr.com/. I am currently trying to use the search function and sifting through the articles to see if anything can help.

    Also, we have purchased the Pro version of the theme. ?? Would it be better to submit a help request via that ticket system?

    Thread Starter kastali_bleikr

    (@kastali_bleikr)

    When I click those links it redirects me to the Customizr Pro page. I don’t have Pro at the moment, I just have the free version. Do you have any links that might help if I don’t have Pro? :/

Viewing 5 replies - 16 through 20 (of 20 total)