Mosa Eugene Nkuna
Forum Replies Created
-
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] Hot to center align title in modal popupGlad to help.
I manage a number of sites. Currently moving to a different server so have nothing to show. Good luck Pressing!
PS: Don’t forget to mark the thread as resolved. ??
Hi Bill.
That shortcode did not work.
I assigned post_tag to my custom post types and was able to display the posts just as I wanted so, in a way it is resolved. Can’t complain!
To answer your question, now that you mention it, there is no specific reason. I figured it was cleaner to do it that way. For one thing, it would be obvious when I look at any code or content what it is exactly I am querying.
Secondly, my permalink structure for tags looks like this /blog/follow/ so a tag link looks like example.com/blog/follow/youtube/. Since the post_tag will be used for “traditional” blog posts and news items will only post company-specific articles, the news_tag rewrite looked like this /news/tag/ giving me example.com/news/follow/company-product/.
Using post_tag makes my news tags look like example.com/blog/follow/company-product/ which isn’t ideal but I guess I’ll take that over the shortcode not working.
I will look at this in more detail as I don’t understand why it does not work. Using Justin Tadlock’s Query Posts and selecting the same taxonomy queries, I am able to display the posts but I need to use the shortcode as it gives me greater flexibility in displaying posts in many, different places throughout my site. The Query Posts widget has its limitations.
But for this specific thread, I have resolved my issue. Thanks for the help. Much appreciated. ??
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] Hot to center align title in modal popupAh, I see. Try
text-align: center !important;
in the CSS Styles box.
Alternatively, if the plugin allows, put this in the title box
<div class="cl-popup-box-title" style="text-align: center;">Hi there! </div>
Beyond that, I think the plugin author should step in.
No problem.
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] Hot to center align title in modal popupIt aligns in the center when I use that CSS declaration. See screenshot.
CSS should be applied globally in one location. Put that CSS in your child theme’s CSS. Alternatively, use a plugin such as the CSS Plugin or the custom CSS JetPack module that way you know all your styling is in one place.
Cool?
Forum: Themes and Templates
In reply to: Removing Parent Category From Shop PageYou shouldn’t be using CSS to do this. Try this snippet:
add_action( 'pre_get_posts', 'custom_pre_get_posts_query' ); function custom_pre_get_posts_query( $q ) { if ( ! $q->is_main_query() ) return; if ( ! $q->is_post_type_archive() ) return; if ( ! is_admin() && is_shop() && ! is_user_logged_in() ) { $q->set( 'tax_query', array(array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array( 'color', 'flavor', 'spices', 'vanilla' ), // Don't display products in these categories on the shop page 'operator' => 'NOT IN' ))); } remove_action( 'pre_get_posts', 'custom_pre_get_posts_query' ); }
Source: WPExplorer
Forum: Plugins
In reply to: [WooCommerce] Problems with Woocommerce Theme IntegrationI’m currently working on integrating this myself.
Unfortunately as Caleb says, if you are out of your depth. you need to hire a developer. Beyond modifying the WooCommerce templates, it’s a matter of using hooks and filters and a whole lot of CSS to get Woo looking like it belongs in Shoreditch.
That’s about as best the help you are going to get for your issue. It isn’t something that can be resolved in a WordPress support thread. Sorry.
Hope you figure it out.
Cheers!
Forum: Plugins
In reply to: Add Custom CSS to Insert Post Ads PluginHi Kate.
This should do it.
.insert-post-ads { background: #EAEAEA; }
You can change that “EAEAEA” hex value to something darker such as #CCC.
Here’s a screenshot of what I got using that code. Let me know if it helped.
Cheers!
Forum: Fixing WordPress
In reply to: Masonry StyleHi Paula.
To be sure I understand you correctly, you want ta layout similar to this one: oreilly.com/topics/data?
This requires some PHP (changing the template file for your homepage) and some CSS.
Please tell me what theme you are using so I can look at prepping a template for you.
Cheers!
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] Hot to center align title in modal popupHere you go.
.cl-popup-box-title { text-align: center; }
Let me know if you still need help.
Cheers!
Forum: Plugins
In reply to: [Sidebar Widgets by CodeLights] Hot to center align title in modal popupHere you go.
.cl-popup-box-title { text-align: center; }
Let me know if you still need help.
Cheers!
Forum: Plugins
In reply to: [WordPress Landing Pages] Conflict with ACF Pro v5.3.9Added timepicker library https://trentrichardson.com/examples/timepicker/. If this causes any compatibility issues with other plugins or theme, please contact support.
As per ACF Pro’s release update, Elliot asked that you contact ACF Pro support if there are any compatibility issues.
Cheers!
Hey umairrockx.
It’s linked in the CTA. It’s called Storefront Parallax Hero. Their WooSlider also works with Storefront. Both are available for purchase only at $19 and $49 respectively.
With a little ingenuity and some rudimentary knowledge of CSS, you can have the same look using a free alternative such as Soliloquy Lite.
There are many sliders in the repo that serve this purpose but it goes without saying, your mileage may vary. Soliloquy has been the best slider for my projects. Well coded and well supported.
Regarding your second question, you can filter the title with some PHP or just hide it with CSS. Try this for CSS.
.home .entry-title { display: none; }
Let me know how it goes.
Cheers!
Forum: Plugins
In reply to: [WooCommerce Shortcodes] AlignmentThis is a CSS issue. I have done this a number of times. For the most part, depending on the theme, I use a media query, typically for desktop sizes to center the products.
This is done by removing
float:left;
with afloat:none;
declaration and setting themargin
to eithermargin:0 auto;
ormargin: auto;
.I could better assist if I could see the page in question but usually changing the
float
andmargin
properties gets the products center aligned.Hope this helps.
Cheers!