Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGabriel Ward
20,222 Pointsadding Soliloquy to my own Wordpress Theme
I've built my own simple Wordpress theme, with a simple blog listing page and individual blog post pages. You can see it at letterbox-mag.com
I've tried adding both the Soliloquy Lite and Meta Slider slide boxes to my theme, but neither of them function properly.
I'm wanting to know what code I'd have to add to my theme files to make them work. What code needs to be added to a theme to make plugins work?
Any help is greatly appreciated, I'm not really sure where to begin.
1 Answer
Rich Bagley
25,869 PointsHi Gabriel,
What problems are you finding with Soliloquy?
I use this in some of my themes and after generating the shortcode in the dashboard you can use do_shortcode to display it on the front end.
Is this what you need?
An alternative would be to create a custom post type and custom fields then use something like Slick carousel's code to display them in your theme front end.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsHi Rich,
I'm finding that if I put the shortcode in a post, that the images do not display in the metaslider, but rather they display as individual images, one below the other. You can see an example here
http://letterbox-mag.com/wordpress/?p=15
At
http://letterbox-mag.com/
You can see that Post 4 has the text
[soliloquy id="22"]This is post number 4
I'm not sure why this is. Do I need to add any code to one of my php files? What exactly do you mean by 'generating the code in the dashboard'?
Gabe
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
Do you have wp_head in your header.php file and wp_footer in your footer.php.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsHaha wonderful thank as always Rich. You are a champion. As you can see there's nothing in the footer. That did it, it works now. Can I ask how you came up with that solution?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem!
I viewed the source to check the references to soliloquy in the header and footer and noticed the extra code missing from the footer section.
Hope that helped :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsCool. I can't recall, are you a professional programmer/developer?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsSorry for the delay, yes I am :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsAwesome stuff Rich!
I'm wanting to become a professional front-end developer.My intention is focus on HTML, CSS, Javascript, and Wordpress. Do you think it's good to focus on a specific set of skills and languages? Or does one need to focus on backend as well?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsI guess it will depend a little on what you're looking to focus on as HTML, CSS and JavaScript will help to build up your front-end development skill set as well as forming a base for other languages.
If you then want to customise WordPress in terms of theme development it would be handy to learn a little PHP too. Zac's course PHP for WordPress is great as a starting point if you want to get in to this.
Hope that helps :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsHi Rich,
It certainly does help. From what I can hear, learning Wordpress is a good skill as it's often what clients need/want. But I also love learning how to programme effects and things like lightboxes in JavaScript.
Can I ask how you got into the industry? Did you teach yourself or did you study programming at university?
Thanks,
Gabe
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
Part of my Uni course covered web development but wasn't the main focus of the course. After graduating I developed a portfolio website and looked for trainee graphic & web design roles before moving in to development and gaining my experience :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsNice :)
I'm in the process of building up a portfolio to try and get an internship. But I'm unsure of what exactly to do/put on it? What sort of things did you have in your portfolio website?
Gabe
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
At the time my work was mainly design and multimedia with 1 (maybe 2, can't remember exactly) website example so I used examples of projects I had completed at Uni along with any I had done in my spare time. In a way the portfolio site itself showed my HTML and CSS, etc. skills.
Hope that's useful.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsOk cool thanks Rich. If there's one thing more than any other that I'm trying to work out, it's what exactly to study/build/focus on, whether it be Wordpress, Javascript, CSS, and HTML.
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsOk cool thanks Rich. If there's one thing more than any other that I'm trying to work out, it's what exactly to study/build/focus on, whether it be Wordpress, Javascript, CSS, and HTML.
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem! Hope you manage to decide :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsWhat do you focus on in your day job? Wordpress, Javascript, a whole range of things? What were the projects you worked on?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
My work mainly involves HTML, CSS, JS and PHP, used for both bespoke and WordPress websites. I started with modifying child themes but have moved in to custom theme developments. Every day is a little different so some builds may be larger than others.
Hope that helps :)
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsMan, that sounds fun and varied Rich. In terms of studying/learning Javascript, did you start by reading books, taking online courses on it? Or did you learn Javascript by having projects/problems to solve and just learn the Javascript necessary to solve them?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
A combination of all those really. I find that a real world example can help a lot though.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsHi Rich,
How are you? I'm just wondering, do you have a website of any kind?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsHi Gabe,
Great thanks, hope you are too.
I used to have one but I don't have a portfolio website any more I'm afraid.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsOk, I'm also curious, did you learn Javascript and PHP concurrently? Or were you quite adept at one before you started learning the other?
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsI worked on HTML, CSS and JavaScript first and once happy I knew enough I moved on to PHP.
Hope that helps.
-Rich
Gabriel Ward
20,222 PointsGabriel Ward
20,222 PointsSure does, thanks Rich.