Forum Replies Created
-
AuthorPosts
-
daymobrewMember
I have figured out how/when to unregister_sidebar('footer-4'). Here is my full code:
// Change from 4 footer widgets to 3. Both add_action() calls are necessary. // This action sorts out the front end. add_action ( 'genesis_before_header', 'rd_footer_widgets_count', 2 ); function rd_footer_widgets_count() { // Change from 4 footer widgets to 3. remove_theme_support( 'genesis-footer-widgets' ); add_theme_support( 'genesis-footer-widgets', 3 ); } // This code unregisters the footer-4 sidebar for the backend. add_action('widgets_init', 'rd_disable_footer_widget_4', 1); function rd_disable_footer_widget_4() { unregister_sidebar('footer-4'); }
I tried using only the 'widgets_init' hook but the footer-4 sidebar is still rendered on the front end!!
daymobrewMemberMy plugin is only for use with Centric Pro. I don't want to edit the Centric Pro theme files - I do realise that it is unlikely to change but I want to the customisations the right way.
In centric-pro/functions.php it has
//* Add support for 4-column footer widgets add_theme_support( 'genesis-footer-widgets', 4 );
I am not exactly sure when this is run (it is not within an add_action function) so I have looked to see where the register_sidebar() function is called and working back from that.
genesis_register_widget_area() contains a call to register_sidebar()
genesis_register_footer_widget_areas() calls genesis_register_widget_area()
genesis_register_default_widget_areas() adds genesis_register_footer_widget_areas() to the 'after_theme_setup' hook.This last bit is why I was trying to call my function with the 'after_theme_setup' hook with an earlier priority.
daymobrewMemberNo other comments at the moment.
daymobrewMemberThe slider size is good but the slide image sizes are inconsistent and therefore the slider height goes up and down.
daymobrewMemberFrom looking at the Author Pro code I think that you need to add the following code to the author-pro/functions.php:
// Disable the 'Tagged with:' footer section. // Returns empty string and this results in the footer not being displayed. // See genesis_author_pro_book_footer() in plugin genesis-author-pro/functions/template.php add_filter('genesis_author_pro_footer_meta', 'as_no_book_tags'); function as_no_book_tags($footer_content) { return ''; // When an empty string is returned the footer will not be displayed. }
daymobrewMemberThe domain has expired.
December 21, 2015 at 3:58 am in reply to: animation/slider/ and text show when rolled over it. #174447daymobrewMemberCan you provide a url showing what you currently have and take a screenshot and use it to highlight what you are trying to achieve.
daymobrewMemberWhen I look at the source for your site, the Google Fonts link is a 404 at Google.
To use Lora font, with 400 and 700 weights and Latin and Cyrillic subsets you use:
<link href='https://fonts.googleapis.com/css?family=Lora:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
In functions.php this would be:
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lora:400,700&subset=latin,cyrillic', array(), PARENT_THEME_VERSION );
What does your functions.php have?
daymobrewMemberI think that you need a SEO plugin, like Yoast SEO, to set the canonical url for each post. This will tell Google where the original page is and then you will not have duplicate content.
You will get something link this in your markup for each post/page:
<link href="http://www.bpmwatch.com/columns/top-5-online-courses-on-big-data/" rel="canonical" />
daymobrewMemberYou're welcome.
After the time it took, I'm glad it worked 🙂
daymobrewMemberI used Chrome Developer Tools to make virtual CSS changes so I cannot be 100% sure that they will work
The important changes are the width reduction from 33.333% to 30% and the margin-left/margin-right 5%.
In reinventingher.com it has nth-child(3) but that doesn't make sense as that would target the last element on the row. I changed it to nth-child(2) on your site and it worked..home-middle .featuredpost .entry { background: none; } .agency-pro-home .content .widget { background: none; } .agency-pro-home .featuredpost .entry { width: 30%; /* Was 33.33333% */ } .featuredpost article:nth-child(2) { /* Was (2) */ float: left !important; margin-left: 5% !important; margin-right: 5% !important; }
Add those to the bottom of the stylesheet or to the "Header or Footer Scripts" area in the Genesis area of the dashboard.
Screenshot: http://imgur.com/qnFnJkS
daymobrewMember@Bauhinia: Can you post a link to the site that you are working on so that we can experiment with the CSS to give accurate answers for you.
I don't know why KM's reply from May 29 is marked as Private. I cannot see it.
daymobrewMemberIt looks like the width is reduced from 33.33334% to 30%
.agency-pro-home .featuredpost .entry { width: 30%; }
It also has:
.featuredpost article:nth-child(3) { float: left !important; margin-left: 5% !important; margin-right: 5% !important; }
Can you post a link to the site that you are working on so that we can experiment with the CSS to give accurate answers for you.
daymobrewMemberI am curious, why did you want to do that?
Could it have been achieved by changing Site Title and Tagline in Settings/General?daymobrewMemberThey have
.home-middle .featuredpost .entry { min-height: 342px; }
daymobrewMemberI love the spinning.
daymobrewMemberWhat is the problem - is it the dotted line under the Font Awesome icons?
If so, they are because of the border-bottom style on the 'a'
border-bottom: 1px dotted #333
You could disable this for the FA icons with something like:
.circle-icon a { border-bottom: none }
daymobrewMemberCan you post a link to the page where your changes can be seen?
(http://ilzerudzite.com/ is using circular images)daymobrewMemberYou could try using the get_the_ID() function.
/* Code to Display Featured Image on top of the post */ add_action( ‘genesis_before_entry_content’, ‘featured_post_image’, 8 ); function featured_post_image() { if ( ! is_singular( ‘post’ ) ) return; if (18800 > get_the_ID()) { the_post_thumbnail(‘post-image’); } }
-
AuthorPosts