ShaiRoelud
Forum Replies Created
-
Mine has a similar body class:
<body class="page page-id-9 page-parent page-template page-template-research-index-php">
I do notice a difference between your template file and mine though. You might be missing some code. Yours looks like this:
<?php
/**
* Template Name: Blog Template
*
*A jerryrigged file for the Blog page pulled from Spun’s main index file.
*
* @package Spun
* @since Spun 1.0
*/get_header(); ?>
And mine looks like this:
<?php
/**
* @package Spun
* @since Spun 1.0
*//*
Template Name: Research menu
*/
?><?php get_header(); ?>
Do you see the difference in <?php and ?>. Don’t know if that causes it or not though, but when I look at your file in TextWrangler it doesn’t appear to see it as code. In mine certain commands light up in blue or pink, but yours is all black.
I remember having the same problem with the featured image turning up square, so in the end I just decided to go for text-only circles on that page, so I don’t think I’ve solved that.
I’ll try and have a look, but it might take a while, ’cause I’m really busy.
Forum: Themes and Templates
In reply to: [Spun] Excluding Subpages from Post-to-Page ModTry this:
<?php query_posts('post_type=page&post_parent=0'); ?>
in the index.php file in your child theme, in between:
<?php endif; ?>
and:
<?php if ( have_posts() ) : ?>
Forum: Themes and Templates
In reply to: [Spun] Sidebar and Alignment of the circlesI have a left-aligned sidebar on all pages except the homepage on my site. So if you’re interested in that let me know and I might be able to help you out.
Unfortunately, I’m not skilled enough to extrapolate my solution to a right-aligned side-bar.Cheers,
RoelForum: Themes and Templates
In reply to: [Spun] I want some text under all of the circlesThe info in this thread might also help.
Forum: Themes and Templates
In reply to: [Spun] I want some text under all of the circlesTry this (and make sure you’re working in a child theme):
In the content-home.php file, add this at the bottom:
<article id="post-<?php the_ID(); ?>" <?php post_class( $postclass ); ?>> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php echo $thumb; ?> <span class="hometitle"> <?php the_title(); ?> </span> </a> </article><!-- #post-<?php the_ID(); ?> -->
Then use the style.css file in your child theme to position the title. I used the info in this thread to center the text over the circles, so that solution should theoretically also work for positioning the text under the circles.
I had the same problem initially (I have a page where I’m generating circles on a parent page from its child pages) and I managed to solve it. Problem is, it has been a while so I cannot exactly remember how I did it.
But I think it has to do with this:
get_template_part( 'content', 'home' );
Initially I had it set up like you as well but I got all kinds of weird shapes and sizes of the circles. I noticed when using firebug, that some CSS code wasn’t applied to the circles on my parent page (I think it was some of the .hentry code).
What I think solved it, was that I made a copy of content-home.php in my child theme and renamed it to content-something.php file (in your case that would probably be content-blog.php or a name that makes it clear that it relates to your blog).
I then changed the code above in the page template file to:
get_template_part( 'content', 'something' );
And that did the trick (see https://www.cameronlab.com, the research page). As long as you have a backup of your site, you might want to give this a go.
Good luck,
Cheers,
RoelForum: Themes and Templates
In reply to: [Spun] Problems with dashboard after changing logo sizeHi Caroline,
Thanks for your quick response. After reading yit, I was convinced that it had to be my child theme functions.php and I figured out what the problem was…my inexperience with coding. ??
My functions.php file already contained this piece of code
<?php // remove version info from head and feeds function complete_version_removal() { return ''; } add_filter('the_generator', 'complete_version_removal');
so I figured I needed to close this with ?>
Then after reading your post it dawned on me that this ?> might be the root of all evil and after removing it, everything seems to work like a charm again.
So thanks for your response and your time because it put me on the right track and helped me solve the problem.
Cheers,
RoelForum: Themes and Templates
In reply to: [Spun] Problems with dashboard after changing logo sizeI did some research myself and came across this article which states the following:
I’ve been doing a lot of testing today and it turned out that the best course of action if you experience issues with the Media Manager is as follows:
Change your theme to Twenty Twelve (the new default theme introduced by WordPress 3.5). If this solves your issue, then you should check your theme. Most probably it is loading some JavaScript files or even an entire version of jQuery in its functions.php file. In addition, you can contact your theme developer for assistance.
I tried it and didn’t experience any problems under Twenty Twelve with the Medi Manager. So hopefully you can tell me whether you have some JavaScript files or jQuery connected to your functions.php file, Caroline, because I’m afraid I’m still too new at this to figure this out myself. Thanks!
Forum: Themes and Templates
In reply to: [Spun] Question about upgrading to 1.07Just a quick update for anyone who was wondering. After backing up everything including my database, I decided to upgrade the Spun theme even though the live preview showed errors.
As far as I can tell, my website still works fine so I think the Live Preview is only able of showing you a preview of the updated parent theme and cannot take the child theme into account.
But I’m happy and this thread can be marked as Resolved. ??
Forum: Themes and Templates
In reply to: [Spun] circles as links to pages instead of posts?Concerning your first question…I did it with putting this code in my child theme style.css file:
/* =Footer. Removes "Powered by WordPress" and name of designer of orignal theme. ----------------------------------------------- */ #colophon { display: none; }
I’m no pro by any means so maybe there are better solutions, but this seemed to do the trick for me.
Concerning your last question…I’ve done this using the solution presented here although I copied the mentioned file to my child theme and changed it there.
I hope this helps.
Forum: Themes and Templates
In reply to: [Spun] Question about upgrading to 1.07No, I did quite some changes in my child css (too much to mention, but it mainly deals with the positioning of certain elements and removing some stuff I didn’t want).
Next to that, I changed the content-home.php file, so that the page titles are printed over the images in the circle and I added a content-research.php file to do the same for the child pages that generate the menu on the Research page.
All these changes are contained in a child theme folder so I didn’t make any changes to the parent theme itself.
Forum: Themes and Templates
In reply to: [Spun] Question about upgrading to 1.07This pretty much explains it although I didn’t change the parent index.php file but added and index.php file to my child theme.
Forum: Themes and Templates
In reply to: [Spun] Question about upgrading to 1.07Yes, I have a static front page and no, I haven’t published any posts.
Everything on the website is published using pages. Since we’re using it as a regular website and not as a blog, the info isn’t updated that regularly and we don’t want any comments etc. I figured going for pages made the most sense (after reading up on the general purpose of pages and posts).
I changed posts for pages using a solution someone posted on this forum. If you want me to, I can look it up.
In my child theme, I currently have my child css sheet and then a content-home.php, index.php, functions.php, content-research.php and a research-index.php. The last two are for generating a circle menu based on child pages on the research page of the website.
Forum: Themes and Templates
In reply to: [Spun] Question about upgrading to 1.07Thanks for your quick response.
If I switch to the parent theme, my site is messed up. It’s saying “Nothing found. Ready to publish your first post?” and gives me my menu.
The reason for this is probably because in my child theme I changed posts to pages and I “deleted” the upper menu and am using the circles for navigation on my homepage…see Cameron Lab
When I click the “Live Preview” button for the 1.07 version of Spun, it shows me exactly the same view as when I activate the current parent theme. So either the Live Preview cannot “see” my child theme, or when I update to 1.07 it somehow will prevent my child theme from working.
Thanks again.