Viewing Blogging

Blogging



User: Roddy 8 years ago
Judging by the number of comments and visits to THIS topic, quite a few EverWeb users are into blogging.

Occasionally I have suggested that users incorporate Wordpress or Blogger into their websites but never gave an example. I remembered that I created a WP blog a few years ago to test the then new responsive template.

Here's an example of a WP blog inserted into an EverWeb created responsive website using the Flex responsive iframe widget.

For those of you who are creating a Trisite using the Touch widgets, the blog can be inserted using the iframe widget on the full site and the Scroller widget on the tablet and smart phone versions if the blog pages are of varying height.

This will work fine if the WP Blog is on the same server as the EverWeb created site. Mine, of course, isn't and WP prevents blogs being displayed in an iframe by default. The solution is to modify the functions.php file and here's the "How to..."

Disabling WordPress X-Frame-Options Support

This is an irritating defensive measure to stop your blog being shown in other websites using iframes.

Using your FTP application, find the wp-content folder on the server. Drill down through...

wp-content -> themes -> theme-name folder -> includes

... to find the functions.php

Download it to the desktop and open it with an editor. Text Edit will do as long as it is set to plain text mode.

Scroll down to the bottom of the doc and paste this...

remove_action( 'admin_init', 'send_frame_options_header', 10, 0 );
remove_action( 'login_init', 'send_frame_options_header', 10, 0 );

... just before the closing ?>

Save and upload the file to the server to replace the original.

Last edit 8 years ago

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.


Post Reply
You must login or signup to post.