Modifying search function

Posted in: Newspaper
Post count: 5

Hello,
I tried to modify the default search.php but it seems the change does not get applied to your template. Which file should change to have this to work ?

Post count: 35449

Hi,

If you are referring to live search, the php file is on this path -> wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_search.php if you are referring to normal search the file path is this one wp-content/plugins/td-cloud-library/shortcodes/search/tdb_search_form.php

Hope this will help you!
Thank you!

Post count: 5

Thank you. One other question , I want to add a page that queries table that is not WP. So My previous template , I create a logic to displace different pages based on categories . See the example below. Which file can I modify to achieve the same goal.
<?php
global $post;
$thepostId = $post->ID;
$thepostTitle =$post_title;
if ($thepostId ==”73251″) //videos
{
if ( wp_is_mobile() )
{
include TEMPLATEPATH. ‘/home_mobile_videos.php’;
}
else
{
include ‘home_videos.php’;
}
}
else if ($thepostId ==”90542″)
{
include TEMPLATEPATH. ‘/artist_news.php’;
}

?>

Post count: 35449

Hi,

So if I understand correctly you want to edit a page template, if eyes the files that can be edited are on this path wp-content/plugins/td-composer/legacy/Newspaper/page.php, page-pagebuilder-latest.php, page-pagebuilder-overlay.php and page-pagebuilder-title.php
If this is not what you mean, please provide some more details.

Thank you!

Post count: 5

I was able to modify the tdb_search_form script but this change only appear on Desktop Version. Mobile still shows Your original search. Where can I change the Mobile search function

Post count: 35449

Hi,

If you are using the mobile theme plugin, then the file that you need to edit is this one -> wp-content/plugins/td-composer/mobile/search.php

Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.