Integrating a page
-
Hello,
thats what i want to do:
I made a results.php file and uploaded it to themes dir
Thats what i wrote in a file<?php get_header(); ?> <div id="content"> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 795; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="https://www.google.com/afsonline/show_afs_search.js"></script> </div><!--/entry --> </div><!--/post --> </div><!--/content --> <div id="footer"><a href="https://www.ndesign-studio.com/resources/wp-themes/">WP Theme</a> & <a href="https://www.ndesign-studio.com/stock-icons/">Icons</a> by <a href="https://www.ndesign-studio.com">N.Design Studio</a></div> </div><!--/left-col --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Inserted google search results code is necessary to display search results, but when i test it its not working. How to make or what to edit (CSS?) to make my file results.php available on my blog. Do i need to add something in to css file?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Integrating a page’ is closed to new replies.