artsfantasy-1
Forum Replies Created
-
The issue is due to jquery incompatibility. the theme I use uses latest JQuery (via deregister then register), the plugin in question uses 1.8.
in plugin file view-elastic-grid.js on line 85 code needs to be replaced to:
jQuery(window).on('load', function() {
this makes the plugin ‘work’, but it brings up more issues due to the jquery incompatibility.
Forum: Plugins
In reply to: [Simple Restrict] Not restricting my shop pageHi All
rhonda8181, as plugin author has said, however you can use the following to bypass the restriction in your WooCommerce archive-products.php template:
<?php if ( is_user_logged_in() ) { ?> content visible for logged in users <?php } else { $simple_restrict_restriction_message = get_option( 'simple_restrict_setting_one' ); echo $simple_restrict_restriction_message;} ?>
The above will simply restrict the woocommerce shop page to non logged in users. If a user is not logged in, the above will spit out whatever is set in your Settings>Simple Restrict>Restriction Message.
Unfortunately the above will not pick up the restrictions set by the plugin. For that, you would need to play around with
wp_get_current_user();
and match the user ID you can get from the above function with the plugin restrictions it has created.Note that you have to have WooCommerce support enabled and plugin files copied over to your theme/woocommerce/ to be able to edit the archive-products.php. You can declare WooCommerce support with the following line in your functions.php :
add_theme_support( 'woocommerce' );
GreatBigTunas solution worked for me as well.
Forum: Plugins
In reply to: [Category Custom Fields] cant add category@jacknumber
read my post again properly please. cheersThat cant be it in my case.
I have done everything i could to make the plugin not conflict. Changed the themes, used the default one, disabled all the plugins possible.
cat_id stands for Category ID
Go to the event category and edit it. The category ID will be displayed in the link.
Forum: Themes and Templates
In reply to: Refreshing Theme not refreshing whatsoeveri dont what caused this problem but i solved with changing and combining few stylesheets.
Forum: Themes and Templates
In reply to: Refreshing Theme not refreshing whatsoeverok, i think i have managed to isolate the problem but not solve it.
The style that it should be applied is in ‘sidebar-globalissues.php’. Any changes that i make to the file, are not visible. I can delete the whole content and write spaghetti bolonese, and the sidebar will appear as it would before the changes.
Deleting it works, as in, the sidebar dissapears, but uploading the updated version still does not do the trick.
I think i got a phantom file.
Got a number to Ghoast Busters?
Forum: Fixing WordPress
In reply to: Featured Image auto-resizes and doubles if too smalli dont see any problems occuring on your site – seems you fixed it…???
Forum: Plugins
In reply to: [Promotion Slider] [Plugin: Promotion Slider] rel="" for promo slider?looks solid.
i guess my confusion comes from looking at the plugin code, and not finding any <a href=”do php stuff here …
Is it possible that php generates the whole link structure without using any echo or print?
I thought that there is some global attribute that generates the link structure ( by looking at that php code ).
Basically i though there is some black magic involved here.
Anywhays, here is a paste bin with the plugin code that i was looking at.
And yes – thank you again. I will have to delve deeper into the plugin files to figure this thing out it seems and find that <a output.
Thank you again!
Forum: Plugins
In reply to: [Promotion Slider] [Plugin: Promotion Slider] rel="" for promo slider?Hi woodent, thanks for your help! You should receive a WordPress medallion for all the help that you have done here in the wordpress community.
This unfortunately does not do the trick.
Let me clarify what i want to do.
The Promotion Slider outputs a link, i want to add to that output of that rel parameter of that link.So
<a href="$destination_url" target="$target" rel="custom field defined rel">
I have enabled custom fields for the Promotion Slider, now what i think i need to do is edit the above
function fetch_link_settings()
so it actually will output the rel parameter as well.
I had the same problem. what it turns out in my case is that there is a conflict with the plugin:
Media CategoriesForum: Fixing WordPress
In reply to: How to add custom post type archive slug to nav menu?oh…. forgot to add that in point 2 – after creating a custom page template:
create a regular page and save it with the new page template that you have just created.
then ofc add that to the menu.Forum: Fixing WordPress
In reply to: How to add custom post type archive slug to nav menu?Ok
If you want to add the whole Custom post into the menu ( archive ) there are 2 ways:
- The clean way
Custom Post types have their own permalink – yoursite.com/taxonomy/custompost. So in the menu navigation you create your Custom Menu Item with a link to yoursite.com/taxonomy/After thats done you can customize the taxonomy with a template that sould be named as follows:
taxonomy-your-custom-post-type-name.php
and then you code it as you wish. - the developer friendly way
create a custom Page template and force the loop of custom posts like so:<?php $loop = new WP_Query( array( 'post_type' => 'POST TYPE', 'posts_per_page' => 10 ) ); while ( $loop->have_posts() ) : $loop->the_post(); ?> your loop stuff <?php endwhile; ?>
If you want to add a specific custom post ( or a category ) then ytou should be able to do that in WP nav menu section. MAybe check the screen options.
If its not there, then your code fr the custom posts is not set to display it in the menu.
Forum: Fixing WordPress
In reply to: Custom Post Type taxonomy loopsuper! worked beautifully for me!
- The clean way