adsense

How to Insert a Line After Each Blog Post on WordPress





1. Log into the dashboard of your WordPress blog. Select 'Editor' under 'Appearance' from the icons on the left. Select 'Stylesheet' under 'Styles' on the far right side (if necessary; style.css is usually open by default in the editor).
2. Scroll through style.css until you locate .post. Depending upon your theme, the Cascading Style Sheet class may have a slightly different name. You can also use your browser's 'Find' function to find each instance of the word 'post' used in the style sheet. Press 'Ctrl' 'F' to open 'Find.'

3. Add code similar to the following:margin-bottom: 15px;border-bottom: 1px solid #000000;The first line indicates how much space to place between the bottom line of your post's text and the horizontal line. The second line specifies the width, style and color of the line.
4. Click 'Update File.' Click the name of your blog at the top of the page to open your website's home page. If you are using the default configuration, you will see your 10 most recent blog posts separated from each other by thin black lines.

How to Use PHP Scripts in WordPress Posts or Pages





1. Open the 'functions.php' file of your WordPress theme in Microsoft Notepad.
2. Add your PHP script as a function. For example, the following PHP script displays 'Hello World!':function myPHPscript ($atts) {echo 'Hello World!';}

3. Define your shortcode by adding the following code in your 'functions.php' file:add_shortcode('myshortcode', 'myPHPScript');Replace 'myshortcode' with the name of the shortcode you want to use when calling the PHP script on your WordPress page or post, and replace 'myPHPScript' with the name of your PHP function.Save your file.
4. Open the post or page you want to add the PHP script to, and within the brackets, type the shortcode you defined in the last step, as in the following example:[myshortcode]
5. Save your post or page, and view it to see the PHP script in action.

How to Hide a Tagline in the WordPress Headway Theme





1. Sign into your Wordpress website and click on 'Appearance' then 'Headway Visual Editor.'
2. Click on 'Site Configuration,' and then click on 'Header.'

3. Check the box next to 'Hide the Tagline.' Click on 'Save' to save the changes. The site's tagline will no longer be displayed.

How to Install and Debug a WordPress Developer Theme





1. Log in to your WordPress dashboard and navigate to 'Appearance.' Go to 'Themes' and click 'Install Themes.' Search for 'framework' or 'sandbox' in the search box and browse through the various developer themes available.
2. Click on the theme you want to install and click the 'Install' button. Wait until the 'Themes' screen loads again and click 'Activate' under the new theme's screenshot to activate that theme.

3. Download the wp-config.php file located in your main WordPress directory and open it in a code editor or Notepad. Scroll down until you find 'define('WP_DEBUG', false);' and change 'false' to 'true.' Save the file and re-upload it.
4. Visit your WordPress website and inspect every page for errors. With debugging turned on in WordPress, any errors in your current theme will display messages right on the website. Most error messages come with suggestions and even links to the WordPress Codex, so read them carefully.
5. Go back to the dashboard and navigate to 'Appearance.' Click the 'Editor' link under 'Appearance' to load the 'Edit Themes' screen. Find the template file you need to debug listed under 'Templates' and click on its link to load it in the editor. Make your changes and click the blue 'Update File' button to save your work.

How to Configure Adobe Contribute for Wordpress





Changing Settings in WordPress
1. Log into your WordPress account.
2. Click on 'Admin Panel' at the top of the page and click on 'Settings' in the lower left corner.

3. Click on 'Writing' in the lower left corner.
4. Click on 'Remote Publishing.'
5. Check the box next to 'XML-RPC.'
Changing Settings in Adobe Contribute
6. Open Adobe Contribute and select 'Blog Connection' under the 'Create New' heading of the welcome screen.
7. Click 'Connect to Blogs.'
8. Click on 'Other Blog Servers.' Don't type anything under 'What is the URL of your Blog,' and type in your WordPress username and password in below.
9. Under 'Access Point' type in 'http://www.[YOURDOMAINHERE].com/BLOG DIRECTORTY/xmlrpc.php'Type in your WordPress domain in the bracketed section above.
10. Click 'Done.'

How to Use Ajax in WordPress





1. Open the header.php file for the theme you use with your WordPress blog. Use a code editor or Notepad to open the file so you can work with the code. Find '
' just above your ending '
' tag and create a new line above the 'wp_head()' function. You should also write a call to 'wp_head()' if it does not already exist.
2. Add a set of script tags where you created a new line above the 'wp_head()' function and set its 'type' attribute to 'text/javascript' if your code is in XHTML or HTML 4. If you do not know, then add the 'type' attribute to be safe. Setting the 'type' attribute will not hurt anything when coding an HTML 5 document, though it is not necessary. Here is an example of the code so far:
// Your AJAX code will go here


3. Start your AJAX code between the script tags. Create a variable on the first line of the code that will hold the XMLHTTP object. The XMLHTTP object handles requests to the server for HTML and XML files, as well as text, PHP and ASP files.
var xmlhttp;

4. Create a conditional 'if-then' statement to check whether the browser is Internet Explorer (IE) 6 versus any other browser, such as Firefox or Chrome. Doing this ensures that IE 6 users can still use your website, though that browser does not support the object 'XMLHttpRequest.'
var xmlhttp;if(window.XMLHttpRequest) {xmlhttp = new XMLHttpRequest();} else {xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');}

5. Write a function to check that the XMLHTTP object is ready. This means the page is loaded and the server returned no errors.xmlhttp.onreadystatechange = function() {if (xmlhttp.readyState == 4 xmlhttp.status == 200) {}}
6. Write your code to grab information from file within the 'if-then' statement that checks for the XMLHTTP object's readiness. You can set a part of your website to get the response text sent by a requested file, for example. Here is an example:document.getElementById('updates').innerHTML = xmlhttp.responseText;The above code will put the contents of the XMLHTTP object inside a pair of HTML tags that have the ID name 'updates.'
7. Write your code to get the content from a particular file. This tells the server where to look for the content you want to place on the page through AJAX. Here is an example:xmlhttp.open('GET', 'myupdates.txt', true);xmlhttp.send();Change 'myupdates.txt' to the file name of the document from where you want to pull your data. In this case, 'myupdates.txt' holds information you want to place on your page. The 'true' tells the server you want an asynchronous request.
8. After writing your JavaScript and AJAX code, save your header.php file and any other files you needed to edit. Upload the files to your server, including any files containing data that your AJAX code references.

How to Find Default.CSS of Thematic WordPress





1. Open the Thematic theme folder, and then open 'Library.'
2. Open the 'Styles' folder to view the style sheets for the Thematic theme.

3. Find the 'Default.css' file inside the 'Styles' folder. It is approximately half way down the list.

Popular Posts

About