Community Forums › Forums › Archived Forums › General Discussion › WP Cycle – Which Themes Support It?
Tagged: compatibility, plugin, shortcode, text widget, Themes. WP-Cycle
- This topic has 21 replies, 3 voices, and was last updated 11 years, 4 months ago by
Brad Dalton.
-
AuthorPosts
-
October 24, 2013 at 11:32 am #68655
eurasiarc
MemberCould anyone provide a list of themes that will support the WP Cycle plugin without additional coding?
I have been using the plugin with blogs that use the Enterprise theme. I know that in the past the Metric theme used WP Cycle and it looks like the Crystal Theme also uses it. I find the plugin especially useful and am wondering if there are any other StudioPress or Genesis themes that can use this plugin without any hardcoding or special configuration that has not been built into the theme. I am looking for some alternatives to the Enterprise theme that have a different look but essentially the same layout and organization.
Thanks for any help with this
http://globalgeopolitics.net/wordpress/October 24, 2013 at 12:02 pm #68662Brad Dalton
ParticipantYou can use the plugin with any theme.
Its very easy to install.
The best way is to hook it in using code. http://wpsites.net/best-plugins/3-ways-to-display-wp-cycle-slide-shows-in-your-theme/#wp_cycle_PHP_tag_In_Custom_Function
November 2, 2013 at 1:13 pm #70547eurasiarc
MemberThanks for the link to the page explaining the customization of WP cycle.
There are a couple of loose ends in the article that require further explanation.
The page gives alternatives for sites that use simple hooks and those that don't. All genesis sites used hooks.
The instructions are not clear on how to position wp cycle within the layout of a theme. There is a short line of code to place in a text widget, but it is not explained whether the widget code is sufficient or whether additional editing of function files is required or whether the alternative coding for themes that use or do not use simple hooks can be used on any blog and why.
I will experiment with this but unless the explanation addresses these unaddressed issues, it may be difficult to get wp-cycle working in the right layout division.
Will check this out and see if it works with the Magazine Pro Theme. I will try to create a wp-cycle widget that can be placed in the home top division of the Magazine Pro layout.
SUMMARY MAIN QUESTION:
Do you need to add code to the function files AND add aditional code to a text widget or is the short line of code suggested for the text widget sufficient for this purpose?
Thanks for any help with these questions.
November 2, 2013 at 1:50 pm #70550Brad Dalton
ParticipantYou can hook the slider into any hook position.
Not all themes provide hooks and the slider works on any theme, not just Genesis/StudioPress themes.
The link i included, links to the section on the post which provides the best solution for Genesis themes.
Using the PHP tag is a better solution than using the shortcode.
All you need to do is change the hook position to match the position you want to display the slider in your theme.
November 2, 2013 at 2:09 pm #70552eurasiarc
MemberThanks for the tip.
I have been experimenting without success with adding to the hooks page and also trying to add a custom text widget.
So far its not workiong.
I am having trouble identifying the right page to edit in the new Magazine Pro theme used with Genesis.
The only pages available for editing in the WP themes editor are the css style page and pages called
theme--functions.php
landing-page.php
and
front-page.php
as well as styles.cssThe pages are named very differently from those of the Enterprise theme where I was able to locate the code integrating wp-cycle into the template.
Do you have any idea which of the above listed pages needs to be edited with the wp-cycle tag added?
Thanks for any additional tips.
November 2, 2013 at 2:50 pm #70557Brad Dalton
ParticipantThe tutorial states:
Add the PHP tag for wp cycle to a custom function in your child themes functions.php file
Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
November 2, 2013 at 3:19 pm #70563eurasiarc
MemberThanks for the latest. I figured this out. On my first look, I didn't see a good place in the functions file to place the code. The Enterprise theme has the code related to wp-cycle in the home.php page, not the functions.php page.
I just added the code sample to the functions.php page for the Magazine pro theme. It does cause wp-cycle to appear in the header of a blog using the theme.
I want wp cycle to appear in the home-top division for the theme, not the header, so some change in the coding of the recommended tag needs to take place in order to instruct wp-cycle to appear in the home-top division instead of the header. I tried some changes in the coding, but so far have not been able to get this to work.
The code suggested above causes wp-cycle to appear only in the header area. Also there is no padding between the images loaded into wp-cycle and the black header. It appears some additional modifications are needed such as an added spacer image to make this appear well in the Magazine Pro template.
Some additional changes to the suggested code need to be made before wp-cycle will appear in any area other than the header are for this theme.
The general principle for adding wp-cycle is there, but it takes additional changes in the theme to make it look good.
November 2, 2013 at 4:32 pm #70577Brad Dalton
ParticipantYou can easily install the plugin and add support for shortcodes in widgets and then use the shortcode in the home-top widget area.
November 2, 2013 at 5:24 pm #70584eurasiarc
MemberThanks again.
I do have the plugin installed and was using it with the Enterprise theme. The one thing I need to learn is how to add support for shortcodes in widgets. I haven't figured out how to do that yet. I would guess its some place in WP or Genesis's documentation. Maybe by the time you get back to me, I will have found it. I think I'm getting a bit closer to the critical mass for a breakthrough on this problem.
I'm going to see if I can enable support for shortcodes in widgets.
November 2, 2013 at 5:48 pm #70589eurasiarc
MemberI almost got this right.
I added a line to the functions.php file to enable shortcodes.
Then I added the text of the shortcode suggested on the page to which I was referred.
WP-Cycle is appearing in the text widget in which I added the code recommended. However there is something wrong with the phrasing or syntax used in the code I placed in the widget, because in addition to WP-Cycle which is indeed visible and functioning, there is some unwanted code that apppears above and below thw WP-Cycle Images.
How do i get the unwanted code to disappear from the widget so that only WP Cycle appears?
Here is the site where I am trying this.
http://globalanalystonline.com/wp/Here is the shortcode segment I copied and pasted from the how to page. Something needs to be edited out of this:
add_action('genesis_header', 'wpcycle_slider_header_home');
function wpcycle_slider_header_home() {
if (is_home()) {
echo do_shortcode('[wp_cycle]');
}
}
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-a1K
*/November 2, 2013 at 6:07 pm #70594eurasiarc
MemberSomething is causing both the code and WP Cycle to appear in the text widget.
Does anyone know how to get the code to disappear?
Thanks for any additional help.
November 2, 2013 at 6:30 pm #70597Brad Dalton
ParticipantNovember 2, 2013 at 6:38 pm #70608eurasiarc
MemberThe problem is that there is no WP-Cycle widget with the Magazine Pro theme. The WP Cycle widget that was available in the Enterprise theme is no longer there.
I will keep looking to see if I can find it.
I just checked and with the enterprise theme WP Cycle is built into the theme itself and is not a widget. It is built into the header of the Enterprise theme.
There is no wp cycle widget in either theme unless there is a simple way to create one that works. As can be seen the WP Cycle shortcode that was added to a text widget shows up in the blog along with the WP Cycle itself.
November 2, 2013 at 7:31 pm #70617eurasiarc
MemberThe shortcode has been added to a text widget, but the code itself continues to show up in the widget in addition to the WP-Cycle image changer.
November 2, 2013 at 10:23 pm #70644eurasiarc
MemberI almost have WP Cycle working in a text widget using only this code:
echo do_shortcode('[wp_cycle]
<p>
However the code text continues to show up in the widget cluttering the layout.
I found a trick that gets the text of the shortcode to disappear from the widget and display only the WP Cycle Image display.
If you simply add
<form echo do_shortcode('[wp_cycle]
the unwanted code disappears and you see only WP Cycle.
However this destroys the theme layout and causes the main sidebar to float down to the bottom of the blog.
There must be some piece of code that will get the shortcode to work in a text widget without cluttering the display.
I would be very appreciative if anyone can explain exactly how this should be done.
I found the suggestion that adding the statement
<form
to any line of html, or shortcode will cause at least some of the unwanted code to disappear from the widget. It works for the use of WP Cycle in a text widget, but it causes other problems with the theme layout, shifting the sidebars to the bottom of the homepage.
November 3, 2013 at 10:25 am #70680Brad Dalton
ParticipantAll PHP needs to be pasted at the end of your child themes functions.php file.
The shortcode needs to go in the text widget.
November 3, 2013 at 12:19 pm #70695eurasiarc
MemberBoth of the conditions stated above were implemented and integrated yesterday into my blog which uses Magazine Pro theme.
1) The recommended php was pasted at the end of the theme's functions.php page
2) The shortcode provided was pasted into the text widget.
This did not solve the problem entirely because parts of the shortcode itself appear in the tex widget instead of being hidden. The problem is how to get the shortcode hidden from view so that the widget displays only WP Cycle and does not have sections of code that clutters the layout.
There is something about text widgets in the current 3.7.1 version of WordPress or the shortcode itself that causes the shortcode to appear in the widget instead of WP Cycle. The shortcode provided does not work properly in the text widgets of WordPress and the Magazine Pro theme.
Please look at the site itself. All of the instructions provided have been followed to the letter and the shortcode has been entered verbatim into a text widget. It does not work.
Something needs to be done to modify and improve the shortcode so that what the shortcode is designed to do, ie present the WP Cycle images in a legible and uncluttered fashion without fragments of shortcode appearing in the text widget on the homepage.
A modification or revision of the shortcode that solves this problem is needed to make the shortocde and WP Cycle function properly in the Magazine Pro and probably other themes. There are clearly problems in the syntax of the shortode itself when it comes to using them with WordPress 3.7.1 and the Genesis based Magazine Pro theme which came out a few days ago. What is needed is for all of the coding to disappear from the text widget.
The instructions on the page provided need elaboration and revision.
http://globalanalystonline.com/wp/
After some clarifications, the instructions and the shortcode recommended on this page were all implemented exactly as recommended. Shortcoding was enabled on the functions.php page and the shortcode provided was pasted into the text widget.
November 3, 2013 at 12:28 pm #70696Summer
MemberWhat code exactly are you using as the shortcode in the text widget?
From your previous post, it looks like you're putting more than just the shortcode in there, with an "echo" in the text widget, when all that needs to be in there is
[wp_cycle]
with no other extra code or text.The php code in functions will allow that shortcode (only the info in brackets) to operate in widgets the same way it would operate in a page or post. If nothing is showing up when you use just
[wp_cycle]
, then there could be an error in what was added to functions.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkNovember 3, 2013 at 12:46 pm #70699eurasiarc
MemberThanks very much for getting back.
I have tried the original shortcode provided on the WP Cycle documentation and tutorial page.
I tried a number of modifications, but currently the widget has the exaxt shortcode that appears on this tutorial page.
This is the exact shortcode that has been pasted into the widget
add_action('genesis_header', 'wpcycle_slider_header_home');
function wpcycle_slider_header_home() {
if (is_home()) {
echo do_shortcode('[wp_cycle]');
}
}
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-a1K
*/This is exactly the shortcode that appears on this WP cycle documentation page.
The shortcode provided obviously needs to be modified so that it will appear properly when used in a text widget.
One can see the results on this blog where the shortcode has been pasted into a text widget. You will see that the widget has WP Cycle with rotating images but shortoding clutters the widget. Something has to be done so that the shortcode will disappear without WP Cycle also disappearing.
November 3, 2013 at 12:53 pm #70701Summer
MemberThat's not the shortcode... that's the entire function. Are you familiar with what shortcodes are and how they work?
Remove everything from the text widget, and put ONLY
[wp_cycle]
in there.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After Dark -
AuthorPosts
- The topic ‘WP Cycle – Which Themes Support It?’ is closed to new replies.