WordPress.org

Ready to get started?Download WordPress

Forums

3D Slider Slice Box
[resolved] Please Provide Explicit Directions For Adding Template Tag (7 posts)

  1. Mountain Dude
    Member
    Posted 1 year ago #

    1. I REALLY want to implement the 3D Slider Slice Box on my site. It's a beautiful plugin.

    2. I'm using the Simplify Theme on WordPress 3.5.1. - http://d5creation.com/theme/simplify/

    3. You have given only the following statement as installation instruction:

      Installation and usage

    Add and activate the plugin, add the template tag <?php if(sb_slides_display()){sb_slides_display();} ?>

    4. I cannot determine how to "add the template tag" and ezhil doesn't say and nothing I've found on codex.wordpress.org seems to help. I have followed ezhil's directions by going to Dashboard > Settings > 3D Slider but there is NO place on that options page to enter the template tag.

    5. The description/definition given at http://codex.wordpress.org/Template_Tags states:

    Template tags files are stored in the wp-includes directory. The files have the suffix of "-template.php" to distinguish them from other WordPress files. There are 9 template tags files:

    wp-includes/general-template.php
    wp-includes/author-template.php
    wp-includes/bookmark-template.php
    wp-includes/category-template.php
    wp-includes/comment-template.php
    wp-includes/link-template.php
    wp-includes/post-template.php
    wp-includes/post-thumbnail-template.php
    wp-includes/nav-menu-template.php

    6. The template my WordPress homepage Page (not Post) uses is called "Default Template" and the other available template choices in the page editor are "Blog", "Front Page", and "Full Width".

    7. The templates I have available in the wp-includes directory are:
    wp-includes/author-template.php
    wp-includes/bookmark-template.php
    wp-includes/category-template.php
    wp-includes/comment-template.php
    wp-includes/general-template.php
    wp-includes/link-template.php
    wp-includes/media-template.php
    wp-includes/nav-menu-template.php
    wp-includes/post-template.php
    wp-includes/post-thumbnail-template.php

    8 The explanation at http://codex.wordpress.org/Stepping_Into_Templates isn't giving me much of a clue. Ezhil, can please tell me and all of the others struggling and stuck trying to implement your plugin EXACTLY where to put <?php if(sb_slides_display()){sb_slides_display();} ?> and how? Maybe you could provide a link to a page offering a good and clear explanation understandable by all. You stumbled through numerous clarifications in subsequent posts on this topic and still left some users clueless. I should mention that new WordPress users are always at a huge disadvantage if plugin authors assume too much about what users of their plugins already know how to do. MUCH time ends up being wasted running in circles for solutions. Maybe I'm missing something but this is my experience with 3D Slider Slice Box.

    9. I too am waiting to see your reply to the post "How to apply this awesome plugin to a specific page?" because I would like to use this plugin on other pages that my WordPress home page.

    http://wordpress.org/extend/plugins/3d-slider-slicebox/

  2. Mountain Dude
    Member
    Posted 1 year ago #

    I think I may have found the solution on where to add the template tag at http://slidervilla.com/blog/2011/09/add-template-tag-wordpress-theme-file/. The explanation is what you would have hoped came from ezhil. He doesn't appear to be too timely or responsive to this forum.

  3. Mountain Dude
    Member
    Posted 1 year ago #

    It works correctly according to the instructions given above.

    What I'd like to know is how to remove the semi-transparent caption box at the bottom of the slide images. I've inserted a CLICK HERE spot on the bottom of my images and the caption box is masking the spot and won't allow clicking. It's confusing to users to find all of the rest of the image clickable but not the spot they are asked to click.....

  4. Daniel Payne
    Member
    Posted 1 year ago #

    This plugin would really benefit if it had shortcode support. Here's a quick fix to support shortcode, add this to your functions.php file:

    function tw_slider3d () {
    
    	$html = (sb_slides_display()) ? sb_slides_display() : '';
    	return $html;
    
    }
    
    add_shortcode( 'slider3d', 'tw_slider3d' );

    Now, when you want to place the Slider in a page, post or even a Text widget use this shortcode:

    [slider3d]

    This way you are not editing Theme files. Most Users are comfortable using short code, only web developers (like me) are comfortable editing PHP theme files.

  5. Mountain Dude
    Member
    Posted 1 year ago #

    Thanks for the useful response.

    1. Is this the basic syntax for creating any short code?

    2. Do you know why the plugin image jerks the page content around?
    See http://wordpress.org/support/topic/incoming-slide-suddenly-changes-size?replies=1

  6. kubelyan
    Member
    Posted 1 year ago #

    where exactly this code must be added?

    I added in couple of pleases on plugin's settings, but nothing works.

  7. Mountain Dude
    Member
    Posted 1 year ago #

    The contributed code is added to the functions.php file (.../wp-includes/themes/YOURCURRENTTHEME/functions.php). I added this:

    // Creates shortcode for 3D Slider Slice Box
    function tw_slider3d () {

    $html = (sb_slides_display()) ? sb_slides_display() : '';
    return $html;

    }

    add_shortcode( 'slider3d', 'tw_slider3d' );

    around line 104 (there was a gap there that didn't interfere with the flow of any of the other code already present) in the functions.php file then uploaded it to the server.

    When finished, the shortcode [slider3d] can be added anywhere within a post or page or elsewhere and passes on the command to WordPress to display the slider at the designated place within the post/page/whatever. See http://www.yourvirtualworld.tv/cms/story-categories/adventure-stories/ .

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic