Search plugin is blank

Post Reply
User avatar
cobber
Master Bludit
Posts: 78
Joined: Sun Feb 28, 2016 10:15 am
Location: Scotland
Has thanked: 21 times
Been thanked: 5 times

Morning,

I'm trying to use the search plugin within a theme but am hitting problems.

Is there a preferred way to use the plugin in a new theme.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Are there any errors in the search console?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
cobber
Master Bludit
Posts: 78
Joined: Sun Feb 28, 2016 10:15 am
Location: Scotland
Has thanked: 21 times
Been thanked: 5 times

Good morning Edi

No errors as far as I can see. I have been wondering if there is a conflict because I am using the following code in my theme index file.

Code: Select all

      if ($page->custom('template')) {  
        
            // If a custom template is specified 
            if ($WHERE_AM_I=='page') {
                include(THEME_DIR_PHP.$page->custom('template').'.php');
            } else {
                include(THEME_DIR_PHP.'home.php');
            }   
    }
    else {
           // If not
            if ($WHERE_AM_I=='page') {
                include(THEME_DIR_PHP.'page.php');
            } else {
                include(THEME_DIR_PHP.'home.php');
            }    
       }
Post Reply