Forum Replies Created
-
AuthorPosts
-
brockMember
I don't know of a particular theme with that exact look but it could be easily achieved with any theme. All Genesis themes use the Genesis Enews Extended widget plugin which can be modified using CSS.
brockMemberI'm not sure that I fully grasp the issue because I tested the Metro Pro theme at http://www.responsinator.com and it looks good to me. However, if you did want to modify it so that the sidebar appears earlier then you wouldn't need to do a total responsive redesign to make that happen. You could just alter the media query's max-width to make it happen (as long as you don't make it too small). I found that it worked as low as 955px.
On line 1862
changed
@media only screen and (max-width: 1023px)
to
@media only screen and (max-width: 955px)
Not sure if this helps.
brockMemberIt's true there really is no reason why Genesis Simple Edits couldn't be used instead.
brockMemberWorks for me! A link to your site might help with debugging, Kimberly. I was able to drop Vajrasar's code in on top of a fresh install of Executive Pro. There was no need to remove anything or comment anything out. The first thing to check is that the javascript is in fact loading on the page.
When you view source, make sure that these scripts are loading:
<script type='text/javascript' src='http://localhost/executive-pro/wordpress/wp-content/themes/executive-pro/js/jquery.powertip.min.js?ver=4.2.2'></script> <script type='text/javascript' src='http://localhost/executive-pro/wordpress/wp-content/themes/executive-pro/js/powertip-init.js?ver=1.0.0'></script>
Good luck and thanks for the tutorial Vajrasar.
brockMemberIndeed it does. Sorry about that. It is because of a difference in the footer for Modern Studio Pro. Try pasting this in place of the last snippet I gave.
//* Customize the entire footer remove_action( 'genesis_after', 'genesis_do_footer' ); add_action( 'genesis_after', 'sp_custom_footer' ); function sp_custom_footer() { ?> <p>© Copyright 2012 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">Admin</a></p> <?php }
It is basically the same except that it uses the
'genesis_after'
instead of the'genesis_footer'
, a small difference in Modern Studio Pro.brockMemberHere is the code you need to customize the footer section. The reason you have two credits is because you have added your own credits without removing the default ones.
<?php //* Do NOT include the opening php tag shown above. Copy the code shown below. //* Customize the entire footer remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'sp_custom_footer' ); function sp_custom_footer() { ?> <p>© Copyright 2012 <a href="http://mydomain.com/">My Domain</a> · All Rights Reserved · Powered by <a href="http://wordpress.org/">WordPress</a> · <a href="http://mydomain.com/wp-admin">Admin</a></p> <?php }
The line that says
remove_action( 'genesis_footer', 'genesis_do_footer' );
is what removes the genesis footer defaults and replaces them with whatever you specify in the following<p>
tag. This should solve your problem.brockMemberWhat theme are you using? Do you have a link to your site so we can see? And what are the dimensions of the stock images you purchased? The extra info might help to answer you, thanks.
brockMemberI don't think the Special Recent Posts plugin is applicable here. The effect is most achieved with javascript. There are some plugins that do this kind of thing for widgets in your sidebar. Search in the WordPress plugins repository for these:
WP Tab widget
Widgets in tabsBoth do basically the same thing with a few differences. Try them out and see if they can do what you want.
May 12, 2015 at 9:36 am in reply to: Whitespace: Portfolio projects (Jetpack) also on homepage, along regular posts #151856brockMemberThis involves altering the query in the WordPress loop. Thanks and credit goes to Brad Dalton of wpsites for providing this custom query code.
You will simply copy and paste this into your functions.php file.
add_action( 'pre_get_posts', 'wpsites_add_custom_post_types_to_loop' ); function wpsites_add_custom_post_types_to_loop( $query ) { if ( is_home() && $query->is_main_query() ) { $query->set( 'post_type', array( 'jetpack-portfolio' ) ); return $query; } }
May 12, 2015 at 8:30 am in reply to: In Outreach, Home Top & Home Bottom Missing in Widget Area #151849brockMemberHe is suggesting that you look inside your themes files to see if something has been removed, as that is the only reason they would not be showing up.
In your functions.php file, the code you are checking for is
//* Register widget areas genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home - Top', 'outreach' ), 'description' => __( 'This is the top section of the Home page.', 'outreach' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom', 'name' => __( 'Home - Bottom', 'outreach' ), 'description' => __( 'This is the bottom section of the Home page.', 'outreach' ), ) );
Then, in your front-page.php file you are looking for this code:
function outreach_home_top_widgets() { genesis_widget_area( 'home-top', array( 'before' => '<div class="home-top widget-area">', 'after' => '</div>', ) ); } function outreach_home_bottom_widgets() { genesis_widget_area( 'home-bottom', array( 'before' => '<div class="home-bottom widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); }
If either of these files is missing the respective code that is your problem. You want to make sure the theme has not been modified by you or someone else. Downloading a new copy and installing it would ensure that.
brockMemberIn your style.css file you look around line number 1710 for this
.page .content .entry-title, .single .content .entry-title { font-size: 60px; margin-bottom: 40px; }
Just change the font size from 60px to whatever you want it to be. This will change the font size for the post/page titles on blog posts and pages.
brockMemberHey, I got an answer to this solution from Sridhar Katakam. The solution comes from him and I am passing it along to you.
The following code snippet should go in your functions.php file. It creates a new widget area called 'top-bar' and hooks it to the 'genesis_before_header' hook.
genesis_register_sidebar( array( 'id' => 'top-bar', 'name' => __( 'Top Bar', 'enterprise' ), 'description' => __( 'This is the top bar for placing social icons.', 'enterprise' ), ) ); add_action( 'genesis_before_header', 'sk_top_bar' ); function sk_top_bar() { genesis_widget_area( 'top-bar', array( 'before' => '<div class="top-bar widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); }
The next code snippet should go in your style.css file. It styles the previously added section.
.top-bar { background: #5387c0; padding-top: 12px; } .top-bar .widget:last-child { margin-bottom: 0; }
You will then go and add your social icon widget to the newly created 'top-bar' widget area. Thanks again to Sridhar Katakam and hope this helps you.
brockMemberCan you post a link to your site?
brockMemberI'm not sure how well I understood your question. But you can add a custom menu with the 'custom menu widget'.
There is a plugin called widget logic which makes it easy for you to tell widgets to only appear on certain pages.
brockMemberI think emasai is right. The image is set as a background to the #header in your CSS stylesheet. If you cut and paste that background property from the #header into the #title-area rule which is just below it that should fix it.
brockMemberSo here are you errors:
if ( !is_49( array( 'whateverpage', 'anotherpage' ) ) )
Since your page id is 49, it should be this.
if ( !is_page( 49 ) )
Lets say you don't want it to show up on another page as well. Let's say this page's id is 50.
if ( !is_page( array( 49, 50 ) ) )
brockMemberYou want the black background to be full-width for the 'two kids giving thumbs up' widget, but you still want the white color above and below it, correct?
The problem is that you are fighting against the .wrap which contains everything and is forcing it to be narrow.
brockMemberSorry Jairba, I don't quite understand your last message. The tiniest detail missing can sabatoge the whole code, so double check that everything is exactly as I have laid out. It would be helpful if I knew what kind of permalink structure you are using.
Could you give me this information as well as the name or id of the pages you want to exclude the site tagline on? This way I could just write out the code for you and you could copy and paste it in your functions.php file to be sure everything is correct.
I have tested this out on my own localhost version of Minimum pro and it works.
brockMemberSorry, correction. It should be this way:
if ( !is_page( array( 'whateverpage', 'anotherpage' ) ) )
The ID is in the URL of the WordPress post or page. Depending on how you have your permalinks set up to look in WordPress. It is that last number. For example:
http://localhost/My_site/wordpress/?page_id=2
http://localhost/My_site/wordpress/?page_id=50How do you have your permalinks set up in settings > permalinks?
In this case I have two pages, one with an id of 2 and the other 50. So, in this case my if statement will look like this:
if ( ! is_page( array( 2, 50 ) ) )
brockMemberLook in your functions.php file for the code that exactly matches what I have posted. There is only a small difference in what I have posted - one line. Just copy and paste what I have posted in place of what is already there.
But wait! One more thing. Look where I have written 'whateverpage' in the if condition. You need to change that to the name or id of the page that you don't want to gray strip to show up on.
Since you have two pages it will look like this
if ( !is_page('whateverpage' or 'anotherpage')
-
AuthorPosts