Tag: wordpress

Style plugins

Just changed the WordPress theme to required+ foundation. This page is an experiment.

Also edited header.php to increase css padding for the title, and removed search box from header because it wasn’t functioning…

note: 6/21/2014: header.php is in the “themes” folder. ¬†Also, today I eliminated the title and subtitle from ‘posts’ pages and when you are logged in the navigation bar slightly overlaps the ‘login’ bar – at the top of screen.

plugin and theme documentation:

http://themes.required.ch/docs/shortcodes/#orbit-sc

Try hovering over the next line…

 


[tooltip position=”top” title=”What goes in the tool tip”]Text that has a tip[/tooltip]

 

 

[column columns=4]hello this is going to be in a column and because of that I need to think of something to say.[/column][column columns=8]there you are going up and down and to and fro but you aren’t going to be able to break out of this column grid without using a short code.[/column]

 

 





Lead Paragraph

Label

Panel

Panel callout

[reveal link=”push this button” linkclass=”button radius alert”]

Wow, you pressed a button.

[=reveal link=”push another button” linkclass=”button radius secondary”]

You pressed another button?

[=/reveal] [/reveal]

 

Keyboard command

[alert type=success]Success[/alert]

Cite – an example of the orbit photo viewer:

[orbit]

 

 

WordPress Download-Manager plugin

notes

After much frustration having Mac OS add txt file extensions Max patch files during downloads, I installed the WordPress download manager plugin which provides a download button in posts. Like this one.

 

To set up a download you select the File Manager from the dashboard and create a post that references the download. Since this is the free version it is featureless.

Note: the Max patches still need to be compressed as zip files to fool Mac OS, but they automatically decompress into folders after the download.

Have set up a folder called downloads on this server under zerokidz

How to add a random post button in WordPress

by teachyourselfwebsites.com

I used this method to add a “random post” to this site. I didn’t create a child theme. So it will break when the theme gets updated.

http://teachyourselfwebsites.com/create-random-post-button-wordpress-blog/

4/24/2016 note:

Here are some details. You need to create a new file inside the theme called page-random.php based on the original page.php.

the added code looks like this and goes right before get_header():

 

<?php
/* Template Name: Random Post */

$randomPost = get_posts(array(
 'numberposts' => 1,
 'orderby' => 'rand'
));
 
foreach ($randomPost as $post) {
 wp_redirect(get_permalink($post->ID));
 exit();
}

Soundcloud short-codes

This code comes from clicking the Share button on the SoundCloud clip, then using the “WordPress Code”

If you find old-style SoundCloud post on a 3rd party site, you may need to get the ’embed’ code and then add it to your post, using the html editor

 

 

test of WordPress text-expander plugin

Following this line, is some text to expand…

It uses shortcodes for the formatting…

[ expand title ]
text
[ /expand ]

 

this
is
some
text

Here is a Max patch in compressed text format. Enclose it in <pre> </pre> tags

----------begin_max5_patcher----------
528.3ocyU0ziaBCD8L7qvBodZCD7GXC6sH0iUUUppm5tph.N65JvNBbTy1U6
+8ZafDRhVET2UzdH1iey3g27xLvy9dAqU64sAfaAeG348rummCxB30e1KnNe
eQUdqKr.I+Wp0+LXQmKMeu1AuoQU29T8ZU0fqs45hGExG9QCuP28DHwQwK.P
paKEaWQlUv88WYiRpk40bWFW0HxOjLqmVwucdfDyE6fk6pExJt1QM3QP0N84
nhRWVMbOLaHqcgoeZKuieAAf6sddw22tr3sIIMlzyABoFroRkquptfhcaYvY
QWvWpKrWWWVz+68TeDZdy0aVPtMb7+plE57zrrswznb8VjtQGb5rnFwWpFjf
+hRtl21l+.+hZd0pu7IvcAIDTDhbWf4+5kzknXHB.iuESyqMNgLHDhvHi6u8
0OZ.97xUfPfY0fDNb6DygSLMyR86DJi0ev5GBO2D16EhRhRoVravQDBiYvFr
BA2DGQIevEXHlFkAy5roYQrzNSHEEkhs2GRIQIz96bfyGRwwr1URiKAXZDEO
xzDzH2iKdyS7TdMx4fTWIj7B0NoSuIWq6paMAxralB68p6BM0YMzDm0b7xUb
m8oKWoYwOsarUsqoXHU8eA.br5J4sZgLWKTxQwvNIlGEkkb43ohZQ4VkYnsm
BuxKClJinSfQYyJiXSfQjYmQv+qXDZBZD8MvHygW7+yzP0RM
-----------end_max5_patcher-----------