![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() I added theme shortcode to homepage to have blog posts in front page, but I noticed that if go to next page that blog is in every page. Is there way to make that I see that blog only in homepage? Maybe there is shortcode from datafeedr products what I can add in my homepage instead of setting store as homepage? Or there is other way to do it?
Last edited by Eric : April 1st, 2013 at 08:38 AM. Reason: Removed comment related to other thread. |
#2
|
||||
|
||||
![]() Hi,
You should change this: Code:
<?php echo do_shortcode('[blog category="215" perpage="3" ]'); ?> Code:
[store.if page="off"] <?php echo do_shortcode('[blog category="215" perpage="3" ]'); ?> [/store.if]
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Awesome, that worked! I noticed - when I change pages slider is still there, I would prefer have that slider only in homepage.
In my theme I have option to set Page title line, like in my blog page or contacts. When I add that to my store page I see it in every page including homepage. I would like to have that line in every store page except home page. How can I do that? |
#4
|
||||
|
||||
![]() Hi,
To remove the slider from your paged store front pages, you need to refer to this post: http://www.datafeedr.com/forums/show...1029#post41029 but you need to change this: PHP Code:
PHP Code:
Change this: PHP Code:
PHP Code:
__________________
![]() ![]() ![]() ![]() |
#5
|
|||
|
|||
![]() Slider - in cycle.php I changed
if (!is_dfr('home')) { return; } To this: if (!is_dfr('home') || @$s->request->params->page>1) { return; } but nothing changed in site. Title block - in header.php that line you mention was in 5 places, so I changed it everywhere, but also nothing changed. Just to make sure we talk about same thing - this block (https://docs.google.com/file/d/0BysN...?ups=drive_web ) what I want add above all my store pages except homepage. |
#6
|
||||
|
||||
![]() Hi,
I'll have to take log into your website tomorrow to take a look. I'm not on a secure connection at the moment therefore I don't want to log into your site right now. I will have a secure internet connection tomorrow afternoon. Eric
__________________
![]() ![]() ![]() ![]() |
#7
|
||||
|
||||
![]() Hi,
This removed the slider on subsequent pages: PHP Code:
Eric
__________________
![]() ![]() ![]() ![]() |
#8
|
|||
|
|||
![]() Thank you for sliders.
Yes I don't have that title block on shop pages, but I would like to have it there, except homepage. I have that title block in blog or my contacts. P.S. I know how to add that block in my store pages, but then it shows also in homepage and I loose slider. |
#9
|
||||
|
||||
![]() To add that title to all but your store's front page, wrap the code responsible for displaying the title in this code:
Code:
<?php if (!is_dfr('home')) : ?>YOUR TITLE HERE<?php endif; ?>
__________________
![]() ![]() ![]() ![]() |
#10
|
|||
|
|||
![]() I managed to get that title, but it is double in my Contacts and blog pages.
I added this code to my theme to get right size font, but I could get text it in same position like in contacts and I think that block is not in same length as in contacts. #color_header h1 { font-size: 55px; padding-top: 40px; padding-bottom: 53px; } |
#11
|
||||
|
||||
![]() Hi,
Your "Shop" title code should look like the following: HTML Code:
<?php if (is_dfr() && !is_dfr('home')) : ?> <div id="pagetitle" class="row"> <div class="grid_12"> <h1> Shop </h1> </div> <div class="clear"> </div> </div> <?php endif; ?>
__________________
![]() ![]() ![]() ![]() |
#12
|
|||
|
|||
![]() Perfect!
Thank you very much. |
#13
|
||||
|
||||
![]() Great!
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I change my front page back to blog posts? | sdc247 | Questions | 1 | March 1st, 2012 07:16 PM |
Can I create category-like page for blog posts? | cashnow | Questions | 2 | July 10th, 2011 05:40 PM |
Blog posts do not display prices | harry81 | Problems | 4 | February 24th, 2011 09:20 AM |