himanshu Dhingra
asked 10 years ago

Hello, I just changed the message user will see if no results found to-  
<p><?php _e( ‘Apologies, but no results were found for the searched item. Don’t worry, you can request what you want & see the magic of requesting. Simply click on REQUEST a DEAL above, once.’, ‘dw-wallpress’ ); ?></p>
and now if I search anything , i am getting the following error.
Parse error: syntax error, unexpected ‘t’ (T_STRING) in /home/dealsnmore/public_html/wp-content/themes/dw-wallpress/search.php on line 24
Please please please help..:(

himanshu Dhingra
replied 10 years ago

Thank you sir, i found out the problem. I used DON'T having apostrophe. 🙂
Just tell me a code if i want to add a link to the word "REQUEST-a-Deal" and make this word's font bigger?

Also the search results are showing only title of the post, not he image and all. I want to make visible all the text of the post before more tag. Is it possible?

1 Answers
DominicStaff
answered 10 years ago

You can open the searh.php file and replace older code with new code:

  <p><?php _e('Apologies, but no results were found for the searched item .Dont worry, you can request what you want & see the magic of requesting. Simply click on <a class="test-request" href="Your-Link">REQUEST a DEAL </a> above, once.', 'dw-wallpress' ); ?></p>

Then add the following code to the style.css file to change the css for the “”REQUEST-a-Deal” word.

.test-request {     color: #379789;     font-size: 24px;     font-weight: bold; }
.test-request:hover {....}

– I have checked on our demo & still work fine (display image, content ), you can send me your site for further checking.
Hope this helps !

Powered by DW Question & Answer Pro