Forum Replies Created
-
AuthorPosts
-
Hello,
Copied and pasted as per your suggestion. I does indeed remove the ‘Blog’ element but still complains about the the line of code that follows it.
if('post' == $post_type) { $category = ""; foreach($category as $cat) { if(!empty($cat->parent)) { $parents = get_category_parents($cat->cat_ID, TRUE, '$$$', FALSE ); $parents = explode("$$$", $parents); foreach ($parents as $parent_item) { if($parent_item) $trail[] = $parent_item; } break; } } if(isset($category[0]) && empty($parents)) { $trail[] = '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>'; } }
Is there anything obvious that you can see that is causing the error I posted above?
Thanks
MarcThis reply has been marked as private.Perfect Yigit, that has resolved item 1&2 – Thanks!
Any thoughts on item 3 the breadcrumb trail and how I can tidy that up?
Thanks for your help
MarcSorry Josue, I couldn’t get this going and found that the custom css I had above was having a knock on effect with the rest of the site and page layouts.
If this code could be set for just my landing-page templates then that would possibly work a little better, but I am finding that I am falling further behind and just introducing more problems.
I have now removed this code and am exploring different ways of getting my landing pages to display correctly both in normal and responsive views. I will hold on to this code and may revisit it if I run into more problems.
I appreciate your help in getting me this far and hope I get it the problems resolved soon.
Kind Regards
Marc- This reply was modified 10 years, 5 months ago by MarcG5.
Thanks Josue & Ismael,
I have included the main components within color sections and added the special heading as suggested. My custom ccs code now includes the following:
/* This will only be applied on desktop */ @media only screen and (min-width: 768px) { #mobilecolumns{ display: none; } } /* This will only be applied on mobiles */ @media only screen and (max-width: 767px) { #mobilecolumns{ display: block; } #desktopcolumns{ display: none; } } .container_wrap { border-top-style: none; } .container .content { padding-top: 10px !important; } .avia-section { min-height: 50px; } #top #main .avia-section .template-page { padding-top: 10px; padding-bottom: 10px; }
The spacing is a lot better on both my desktop and mobile devices but on the desktop the main content has been moved over to the right. Any ideas what is causing this?
I have also noticed that this code is removing the border lines for all pages under where the page titles are. Is there anyway to restrict this just to my landing pages?
.container_wrap { border-top-style: none; }
Many Thanks
Marc- This reply was modified 10 years, 5 months ago by MarcG5.
Thanks Josue,
I have tried that section of code but it loses the title “A – B” above the image and doesn’t seem to affect the white space below the image (before the start of the color section) and immediately after the color section. Adjusting the spacing didn’t seem to adjust the whit space either.
Sorry to be a pain but any other pieces of code I could try?
Thanks
MarcHi Josue,
I have found a piece of code that helps to adjust the padding for the color sections:
.avia-section { min-height: 30px;
padding-top: 5px; }I am having problems reducing more of the white padding both above and below the color sections. I have tried the above code with different values and also the white spacers to no avail. It is also more prominent when viewed on a mobile device, any thoughts on how I can reduce more of the white space that is present?
Kind Regards
MarcPerfect, I just need to play around with the space and border formatting now but looking good!
Thanks again Josue :-)
Hi Josue,
Thank you for your reply and help. I am almost there thanks to yor code and suggestion. What I have done:
Created a test landing page: http://marcgodfreeweddings.co.uk.gridhosted.co.uk/test-landing-page
Created two colour sections with my two columns. One has been given the ID “desktopcolumns” the other “mobilecolumns” The only difference is the order that the content should be seen.The code you kindly supplied hides the “mobilecolumn” when displayed on a desktop machine – Perfect! Unfortunately it also displays both colour boxes on a mobile device. I am sure it is just a simple change but I can’t for the life of me work it out even after playing with the code. Sorry not being a developer I just tent to bumble my way through code until it works but got stumped here!
I have reverted it back to the code you have supplied but would appreciate any pointers in hiding the “desktopcolumn” on mobile devices.
Kind Regards
MarcThank you Yigit – works a treat :-)
Please ignore this as strangely it is now working :-/
Hi Ismael,
Thank you for your reply and code! I have added this and it all looks good on mobile phones now however, on my iPad the breadcrumb (which I still want) overlaps the page title when viewed in portrait mode causing a messy looking heading. It is fine in landscape view as there is plenty of space. Any thoughts on a way around this?
Also did you have any thoughts on the main menu highlighter and how this could also be resolved?
Thanks for your help it is greatly appreciated and looking forward to going live with this awesome theme!
MarcThanks Ismael, I’ll give it a go!
Hi Ismael,
I appreciate the complexities of the Enfold theme and the level of work required to make such a change from Avisio hence my question. It would be ideal if I could keep Avisio live for my visitors but have Enfold in a separate development area looking at the existing content where I could make the required changes. Only once those changes have been made can I switch themes.
Any help and advice in to such a migration would be greatly appreciated.
Kind Regards
Marc -
AuthorPosts