Forum Replies Created
-
AuthorPosts
-
ᴅᴀᴠɪᴅMember
I can see that within one of your media queries on your style sheet you have:
.home-middle
.widget,
.home-top
.widget {
-moz-box-sizing: border-box;
float: left;
margin: -10px 0; < This bit is wrong
padding: 0 10px;
width: 25%;
}You need to change the bit about margin (which I have highlighted above) from negative to positive so it reads
margin: 10px 0;
instead. If you have rem values on the margin then you need to change that also.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberthinking back.. i may have been on chrome actually on windows. It definitely wasn't IE though
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberthe padding-top: value will obviously change dependent on how big your header is.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberHi, thanks! Sorry I have already changed my design before having time to answer your question haha. I actually got bored with the sticky header. It is pretty easy to do though.. For the Epik theme I did this in the stylesheet..
.head-wrap {
position: fixed;
}.site-inner {
padding-top: 134px;
}Then, because i didn't want it to happen on small screen sizes (it takes up to much small on the screen) I did..
@media only screen and (max-width: 767px) {.head-wrap {
position: relative;
}.site-inner {
padding-top: 0;
}
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberThanks Susan!
Ha, yes there are lots of widget areas. I actually removed them all from the functions.php file and all reference to them in the css as I knew I wasn't going to make a home page on this site, just a blog page. The only reason I chose Epik theme actually was for the portfolio page 🙂
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberjust to clarify (i tend to waffle)
I am asking if to add javascript to my genesis site, for the purpose of installing a plugin, can i insert code such as
<script type='text/javascript' src='http://yourdomain.com/wp-content/plugins/yourplugin/js/custom-script.js?ver=3.3.1'></script>
into my wp_head(): through the dashboard, or do i need to insert it somehow using functions.php.
Note: I only actually need the js to load on one specific page of my site, if that changes anything.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberYou Sir are a gentleman! Thanks!
You have not only pointed me in a good direction, but you have also kind of explained why I have had trouble finding documentation on creating child themes. I seems that most people who attempt to start creating a genesis child theme from scratch already have sufficient php knowledge from wordpress and then have no trouble at all adapting to the genesis framework. I came in from the wrong angle.
I am actually in my 7-day trial at Lynda.com so this works out perfectly.
I shall now move to the cheapest country I can find (with fast internet connection) and hide out for the next 6 months while I learn php. Then maybe one day I will be able to help somebody else who finds themselves in my current situation.
Thanks again!
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberPS When I said "I don’t want to spend a year studying something and then find out I only needed 10% of it. I will most likely only ever be working inside of a genesis child theme."
This really isn't out of laziness. If i have to learn it all then so be it. But I have always thought it is better to be really good at one specific thing than to try and be a jack of all trades. I just want to be able to create genesis child themes that are completely how i want them to be. Functions, styling and everything else. That is all.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberPerfect. Thanks a lot. Now i can just copy the content into the code.
I wonder why the page content was never appearing? I thought that is what 'genesis_do_post_content' does.
Anyway problem solved either way. thanks again!
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMember<?php
// Template Name: Portfolio
// Adds Page Title and Content
add_action( 'genesis_before_content', 'genesis_do_post_title' );
add_action( 'genesis_before_content', 'genesis_do_post_content' );// Loads prettyPhoto scripts
add_action( 'get_header', 'prettyPhoto_scripts' );
function prettyPhoto_scripts() {
wp_enqueue_script( 'prettyPhoto-min', CHILD_URL.'/lib/prettyPhoto/js/jquery-1.6.1.min.js' );
wp_enqueue_style( 'prettyPhoto-css', CHILD_URL.'/lib/prettyPhoto/css/prettyPhoto.css' );
wp_enqueue_script( 'prettyPhoto-js', CHILD_URL.'/lib/prettyPhoto/js/jquery.prettyPhoto.js' );
}// Adds javascript below footer
add_action( 'genesis_after_footer', 'prettyPhoto_javascript' );
function prettyPhoto_javascript() { ?>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
<?php
}// Force layout to full-width-content
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );// Adds "portfolio" and "gallery clearfix" classes to every post
add_filter( 'post_class', 'portfolio_post_class' );
function portfolio_post_class( $classes ) {
$classes[] = 'portfolio';
$classes[] = 'gallery clearfix';
return $classes;
}add_filter( 'excerpt_more', 'portfolio_read_more_link' );
add_filter( 'get_the_content_more_link', 'portfolio_read_more_link' );
add_filter( 'the_content_more_link', 'portfolio_read_more_link' );
/**
* Custom Read More link.
*
* @author Wes Straham
* @since 1.0.0
*/
function portfolio_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
}// Remove post info and meta info
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_before_post_content', 'genesis_post_info' );/**
* Adds Featured Image and links it to the Post
*
* @author Wes Straham
* @since 1.0.0
*/
add_action( 'genesis_before_post_content', 'epik_portfolio_do_post_image' );
function epik_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) ); printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
}/**
* Opens Featured Images with prettyPhoto Slideshow
*
* @author Wes Straham
* @since 1.0.0
*/
/*add_action( 'genesis_before_post_content', 'epik_prettyPhoto_image' );
function epik_prettyPhoto_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
printf( '<a href="%s" rel="prettyPhoto[gallery1]" title="%s">%s</a>', genesis_get_image( array( 'format' => 'url', 'size' => 'Portfolio Full', 'attr' => array( 'class' => 'alignnone post-image' ) ) ), the_title_attribute('echo=0'), $img );
}
*/// Move title below post image
remove_action( 'genesis_post_title', 'genesis_do_post_title' );
add_action( 'genesis_post_content', 'genesis_do_post_title', 9 );// Remove default content for this Page Template
remove_action( 'genesis_post_content', 'genesis_do_post_image' );
remove_action( 'genesis_post_content', 'genesis_do_post_content' );// Add Content for the Portfolio posts in this Page Template
add_action( 'genesis_post_content', 'epik_portfolio_do_post_content' );
function epik_portfolio_do_post_content() {if ( genesis_get_option( 'epik_portfolio_content' ) == 'excerpts' ) {
the_excerpt();} else {
if ( genesis_get_option( 'epik_portfolio_content_archive_limit' ) )
the_content_limit( (int)genesis_get_option( 'epik_portfolio_content_archive_limit' ), __( 'Read More', 'epik' ) );
else
the_content(__( 'Read More', 'epik' ));
}
}// Clear float using genesis_custom_loop() $loop_counter variable
// Outputs clearing div after every 4 posts
// $loop_counter is incremented after this function is run
add_action( 'genesis_after_post', 'portfolio_after_post' );
function portfolio_after_post() {
global $loop_counter;if ( $loop_counter == 3 ) {
$loop_counter = -1;
echo '<div class="clear"></div>';
}
}// Remove standard loop
remove_action( 'genesis_loop', 'genesis_do_loop' );// Add custom loop
add_action( 'genesis_loop', 'portfolio_loop' );
function portfolio_loop() {
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;$include = genesis_get_option( 'epik_portfolio_cat' );
$exclude = genesis_get_option( 'epik_portfolio_cat_exclude' ) ? explode(',', str_replace(' ', '', genesis_get_option( 'epik_portfolio_cat_exclude' ))) : '';$cf = genesis_get_custom_field( 'query_args' ); // Easter Egg
$args = array( 'cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option( 'epik_portfolio_cat_num' ), 'paged' => $paged);
$query_args = wp_parse_args($cf, $args);genesis_custom_loop( $query_args );
}genesis();
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberHi, thanks for your help. Unfortunately it isn't putting the text where i wanted it though. It is putting it below the title of each of the images contained in the portfolio, not below the title in the actual page itself.
In the page_portfolio.php there is
// Adds Page Title and Content
add_action( 'genesis_before_content', 'genesis_do_post_title' );
add_action( 'genesis_before_content', 'genesis_do_post_content' );At the top, i would have thought this should pull up the title and the content of the page, and then pull the information from the other posts which make up the portfolio page. I have written content in the page but it never displays. I would ask Wes who designed Epik theme but every time I go to his website it never loads. I will keep looking anyway. Thanks for replying so quick btw.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberSorry i have realised I am asking the wrong question. I am wanting to know how to change the page_portfolio.php so it shows the content of the page before actually creating the portfolio. The only thing it is taking from the actual page that I create in wordpress is the title. Then it goes off and creates a portfolio of images.
I am guessing it would be something to do with 'entry-content'
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberProblem resolved, sorry for wasting 2minutes of anybodies time who read this 🙂
I was looking at a cached page through chrome, which had some old errors,
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberps on my other mac i have been having problems with chrome saying the "aw snap" error message every time I try to visit a website. To the point that it has become unusable. I'm not sure if this can be related in any way. I'm now on a different computer but at the same location.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberHi, I finally figured it out. It wasn't just the css code. After changing the css to transparent I also had to delete this code from the simple-social-icons.php
background-color: ' . $instance['background_color'] . ' !important;
i think this turns off the ability to change the colour in the widget menu and allows the css code to make it transparent. So for anybody wanting to do it, now you know 🙂
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberthe website it is on is http://nomadspirit.net
ah i didnt realise there was a css for the plugin also. Sorry, maybe I can have a play then once I have found the file. Firebug wasn't giving me a location to find the css i needed,
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberThanks. I will look into it for sure! 🙂
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberMy background is a textured image.. this is the problem. I can get the colour close but not exactly. I need it transparent really.
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberPS here is a link to a screen shot of Pingdom to show you what i mean. the yellow indicates waiting time. So, as you can see in the image, half of the whole loading time is just waiting time before even starting to download anything..
http://nomadspirit.net/wp-content/uploads/2013/01/Screen-Shot-2013-01-28-at-4.01.46-PM.png
I dont seem to find any info apart from forums telling people to contact their hosting, which I did. But they said it is not them.
Again, thanks. Any help pointing me in the right direction would be much appreciated!
I love helping creative entrepreneurs build epic things with WP & Genesis.
ᴅᴀᴠɪᴅMemberps my site is nomadspirit.net if it helps with answering. thanks!
I love helping creative entrepreneurs build epic things with WP & Genesis.
-
AuthorPosts