Forum Replies Created
-
AuthorPosts
-
Ok yes I can see it now thanks
OK thanks I will check this out
Havent tried it in another theme but the script works perfectly within a normal html page.
I just want to know how to incorporate it within Enfold as I thought that was what the Code Block was meant to do?
Is there something I need to activate/add???Ok after no further replies I have worked it out myself so I will explain in case anyone searches for the same thing. Bit disappointed no further help was forthcoming.
If the code is placed in page.php as stated by Elliot above it will only show up in the basic page with no modifications or content added. As soon as content/layout elements are added page.php isn’t used and template-builder.php is, so by adding the include code to the page just before the footer code on template-builder.php it will appear.
The additional code stated by Elliot to show only on the home page, can be used here and works.Last part of template-builder.php
echo avia_sc_section::$close_overlay; echo ' </div><!--end builder template-->'; echo '</div><!-- close default .container_wrap element -->'; //inserted code if ( is_home() || is_front_page() ) { include('/home/mobile/public_html/4u4/quote/testimonial.php'); } // end of inserted code get_footer();
That isnt showing up at all is there something else I need to do to enable it????
Getting a bit frustrated now…
Hi could you just confirm I have this correct thanks
So I would just put in
<?php if ( is_home() || is_front_page() ) { include('/home/mobile/public_html/4u4/quote/testimonial.php'); } ?>
at the bottom of page.php template is that right?
Hi Elliot thanks for your patience
So I would just put in
<?php if ( is_home() || is_front_page() ) { include('/home/mobile/public_html/4u4/quote/testimonial.php'); } ?>
at the bottom of page.php template is that right?
Also I only want to run it on my main front page
Thanks Elliot trying to learn this as I go along, where would I find the page.php template?
Sorry if Im being a bit dense
Thanks
Hey Rikard I discovered the downloaded Enfold files were encrypted so once I removed that I could paste the unpacked theme into the themes folder.
Apparently if files are saved on a MAC then you try to open them on a PC using windows 7 they show as encrypted.
Any more ideas on this? I cant even get the dashboard up now just get what I said above
Thanks
Hi Yigit
Managed to paste it so it shows up in the themes screen in WP dashboard not sure why it didnt before, but when I activate it I get:
( ! ) Warning: require_once(C:\wamp\www\seoss\wp-content\themes\enfold\config-wpml\config.php): failed to open stream: Permission denied in C:\wamp\www\seoss\wp-content\themes\enfold\functions.php on line 30
Call Stack
# Time Memory Function Location
1 0.0000 384856 {main}( ) ..\themes.php:0
2 0.0166 452408 require_once( ‘C:\wamp\www\seoss\wp-admin\admin.php’ ) ..\themes.php:10
3 0.0186 470528 require_once( ‘C:\wamp\www\seoss\wp-load.php’ ) ..\admin.php:31
4 0.0195 481456 require_once( ‘C:\wamp\www\seoss\wp-config.php’ ) ..\wp-load.php:29
5 0.0215 579552 require_once( ‘C:\wamp\www\seoss\wp-settings.php’ ) ..\wp-config.php:80
6 0.9463 23094504 include( ‘C:\wamp\www\seoss\wp-content\themes\enfold\functions.php’ ) ..\wp-settings.php:329( ! ) Fatal error: require_once(): Failed opening required ‘config-wpml/config.php’ (include_path=’.;C:\php\pear’) in C:\wamp\www\seoss\wp-content\themes\enfold\functions.php on line 30
Call Stack
# Time Memory Function Location
1 0.0000 384856 {main}( ) ..\themes.php:0
2 0.0166 452408 require_once( ‘C:\wamp\www\seoss\wp-admin\admin.php’ ) ..\themes.php:10
3 0.0186 470528 require_once( ‘C:\wamp\www\seoss\wp-load.php’ ) ..\admin.php:31
4 0.0195 481456 require_once( ‘C:\wamp\www\seoss\wp-config.php’ ) ..\wp-load.php:29
5 0.0215 579552 require_once( ‘C:\wamp\www\seoss\wp-settings.php’ ) ..\wp-config.php:80
6 0.9463 23094504 include( ‘C:\wamp\www\seoss\wp-content\themes\enfold\functions.php’ ) ..\wp-settings.php:329 -
AuthorPosts