How to check if it's a HomePage/Frontpage? - bolt-cms

In BOLT CMS how do I check if the current page is a homepage?
I need to check on _footer.twig file that if it's homepage then make the footer sticky.
Sorry if i sound blunt but I searched on the internet and on the default templates but didn't find a clue.

In the template? From the Bolt 3.0 cheatsheet, you can check to see if {{ app.request.get('_route') }} is the same route as the homepage.

Related

add sku to many page in shopify

I need to add the SKU in 2000 pages in a website of shopify. I know that you can use the html code to do it, however, I did not mention it, if you could help me, I would appreciate it.
This is the way it should be:
This is the data that should be called:
Add {{ current_variant.sku }} to your liquid file (probably product-template.liquid) in the place you want it to show up.

GitHub page displays correctly locally, partially in HTML once pushed

I'm having trouble with my GitHub site. It builds just fine locally, but I'm encountering lots of issues with functionality online. My repository is here and the site is http://www.williamcapecchi.com.
The images are not being displayed in the post list and clicking any post or project leads to the page being displayed in HTML and losing the stylesheet. The link should also take you to this homescreen (or by clicking my name or profile pic on the left of the screen the link actually takes you to) but this home screen is not working either. I've made sure my version of Jekyll is up to date, but I haven't changed anything recently and can't figure out where the problem is. I'm new to site building so I feel like it might be an obvious answer, but any help or advice would be much appreciated!
Thanks,
Bill
Instead of using hrefs to your main.css, etc. with just css/main.css, just use a fullly qualified url using jeykl's site.url tag, such as '{{ site.url }}/css/main.css'

How can I disable blog as landing page in wordpress?

I'm learning how to use wordpress using it from my computer as a local web server, and I want my website look like the preview of themes in the adding themes section, but after I install most of those themes, the first page I see is the post page. I want that any theme I install looks like Zerif Lite by example, that kind of look.
B.e. This real case: I just saw the Spacious theme, but when I click to preview just shows the blog section, and not the carrousel and all that desing...
This is my website http://ajfmo.ddns.net and i want tome make look this way http://demo.themegrill.com/spacious/
If anyone want to see inside my dashboard ask me by private message.
Thank you guys.
You can go to Settings=>Reading in the admin area and there is an option to choose a static page as your "home" page.

wordpress widgetlogic conditional logic is not working for post page

I am just developing a theme under wordpress twentyeleven theme. In that theme I have installed widget logic plugin to show different widgets on different pages. But when I want to show some widgets in post page and made conditional tags for widget logic the widgets are not showing in post page.
I have tried some thing conditional tags like this
is_page('Blog')
is_page('246') // As 246 is the page id of my post page.
I tried all of them but still its not showing.
I had also tried wp_reset_query(); in my functions.php file. But no luck there was.
Update
To make blog page as my post page I have made changes in wordpress settings >> Reading >> A static page >> Post page -> Blog
So can someone kindly help me to solve this? I have already spent a day to solve this. Any help and suggestions will be highly appreciable.
Just try this in your widget conditional
is_home(Blog)
Here is the link http://wordpress.org/extend/plugins/widget-logic/other_notes/
Just check there is_home() -- just the main blog page
try is_page(246) without quotes.

Linking back to home page in wordpress

So I have WordPress installed in a subdirectory of my website with permalinks set up.
I have my website set up like so:
-index.php
-style.css
-/contact
---index.php
-/blog
---(Wordpress installation)
So my problem is, whenever I use an Home to link back to my homepage, it only works from my main blog page. If I go to a permalink post it takes me back to the blog home.
What I'm wondering is, is there a way to link back to the main page on both my blog home, and a permalink post? If i use ../../ it works on the post, but not the blog home.
I hope I worded this clearly enough, if I missed anything please let me know. Any help greatly appreciated, thanks.
Home
See: http://codex.wordpress.org/Function_Reference/home_url
You can use the home_url function: http://codex.wordpress.org/Function_Reference/home_url
I also recommend checking out the WordPress Function reference, and use the appropriate built in functions rather than inventing your own.
Edit: Not sure if you want to go back to the main index, or the WordPress index. If you just want to link back to your first index.php, you can simply use <a href="/>Home</a>