Forum Replies Created
-
AuthorPosts
-
erinholmes
MemberVictor,
Are you having any issues with Siteground right now by any chance? Literally, out of nowhere, I cannot get the Genesis Framework to work. It keeps giving me this error no matter what theme I use:
Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /home/kickst72/public_html/wp-content/themes/genesis/lib/admin/menu.php on line 122 and defined in /home/kickst72/public_html/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38
Check your site---it seems to "look" okay, until you log into the backend, and then the issue reveals itself. I've contacted Genesis support. Not sure whats going on here. I didn't do anything that should have caused this, so I'm thinking it may be an incompatibility with siteground.
July 21, 2016 at 9:09 am in reply to: How to edit functions.php to remove featured image above the entry content? #189908erinholmes
MemberNevermind. I'm back to square one. Commenting this all out really messes with the homepage. The way entry posts are set up on the majority of these studiopress themes seems sort of backwards. I'm not sure why displaying entry posts on pages is necessary.
July 21, 2016 at 9:06 am in reply to: How to edit functions.php to remove featured image above the entry content? #189906erinholmes
MemberI commented this all out, and it removes the entry image on pages and posts. However, is there a way to edit this so that entry images show "only" on posts, and not pages?
//* Add featured image above the entry content
//add_action( 'genesis_entry_header', 'aspire_featured_photo', 5 );
//function aspire_featured_photo() {//if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
return;//if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
printf( '<div class="featured-image"></div>', $image, the_title_attribute( 'echo=0' ) );
//}//}
July 21, 2016 at 8:42 am in reply to: How to edit functions.php to remove featured image above the entry content? #189904erinholmes
MemberI think the solution involves removing the entry image from displaying on pages. On posts it looks/works just fine.
July 21, 2016 at 8:23 am in reply to: How to edit functions.php to remove featured image above the entry content? #189901erinholmes
MemberThis solution seems to put the image at the end of the pages and posts. Could someone pinpoint the issue. I'm not comfortable with php. Here is the code:
//* Add the featured image after post title
add_action( 'genesis_entry_content', 'aspire_featured_photo' );
function aspire_featured_photo() {if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
return;if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
printf( '<div class="featured-image"></div>', $image, the_title_attribute( 'echo=0' ) );
}}
erinholmes
MemberI think I'm going to use the "NextEnd Accordion Menu" plugin. I just realized I can't get the current sidebar to perform the functions I want.
erinholmes
MemberThe sidebar is at http://iraservicestrust.com/about-real-estate-iras
And this is the style css used for it: (and I can't seem to find anything in functions.php file that wasn't already there.
/* Sidebar custom menu widget expand collapse
---------------------------------------------------------------------------- */.sidebar .widget_nav_menu li > a {
display: block;
/*background: #787a4d;
color: #fff;
padding: 10px;*/
position: relative;
}.sidebar .widget_nav_menu li.menu-item-has-children > a a:after {
content: "\f347";
font: normal 15px/1 'dashicons';
position: absolute;
right: 10px;
top: 5px;/*background-image: url(images/has-children.png);
background-position: right 50%;
background-repeat: no-repeat;*/
}.sidebar .widget_nav_menu li.menu-item-has-children > a.open a:after {
content: "\f343";/*background-image: url(images/has-children-on.png);*/
}.sidebar .widget_nav_menu li > a a {
display: block;
/*color: #fff;*/
}.sidebar .widget_nav_menu li.menu-item-has-children li {
margin-top: 10px;
}.sidebar .widget_nav_menu li.current-menu-item a {
color: #ffb81c;
}/*
erinholmes
MemberThanks! The genesis widgitized footer does not seem to work for this theme. Or what I think happened is the credits appear in the same color as the background, so you can't see them.
Your custom plugin worked great. Just uploaded it! http://www.kickstartupmarketing.com
-
AuthorPosts