Forum Replies Created
-
AuthorPosts
-
Yes I do need help. It is still aligning left when set to max width as per screen grabs. None of the code you have sent has worked. I have only disabled max width as the client I am working for has a large screen and it looks terrible. If you can’t send me the fix without me breaking the site let me know but I have sent you the login for you to add the max width css yourself and try it.
Thanks
RobNo sorry that doesn’t work. The image is still aligning left.
This works okay to get the size correct:#robheader { max-width: 1600px; }
… but I have removed it because I don’t want the client to see it with the wrong alignment.
Thanks
RobSorry Andy that didn’t work.
I have renewed the login below if you wanted to have a play yourself.
Thanks
RobNo not just the text. I mean the complete header. Here’s another screen grab:
https://www.dropbox.com/s/mmbqx2pwrw0455t/grab-160526.jpg?dl=0Thanks Andy nearly there.
It now works but it aligns to the left. It needs to be in the center above the rest of the site. In the color section the image is set to center center. What is the css I need to add to get it to align center? I tried adding margin: auto; but it didn’t work.
Your help is much appreciated.
Thanks
RobI’ve cleared the cache in Firefox and I’ve tested it in Chrome for the first time and the header image is still full width. The screenshot you sent is of the css code. I can’t tell from that whether it looks okay on your screen or not.
Here’s a grab of Chrome the first time it has been to the site.
https://www.dropbox.com/s/ez3lzjqksq6jjn2/grab-160518.jpg?dl=0Thanks
RobSorry Yigit, I tried it but still not working :-(
Hi Rikard,
I have confirmed with the host and no caching is being applied.
Thanks
RobSorry guys what a numpty.
Log in below good for 7 days.
Thanks
RobAre you sure there is no way to have the featured products in the product slider. It seems crazy. I can’t see the point of a product slider that doesn’t allow you to select which products it shows. I use other WP themes and in the product slider there is a drop down that allows you to select featured, best sellers etc. I have tried what you said above and I agree with Runek, it is no workaround at all.
Thanks
RobThanks Ismael that fixed it. I tried lightbox-added but not just lightbox.
Nice one
Cheers
RobHi Vinnie,
No it is not resolved. Lightbox is not working on a custom post type within the Enfold theme. The first code is the generated html for one thumbnail. The next code is the code in loop-index that calls the images.
Sorry if I am repeating myself but I don’t know how to answer your question unless I summarize what I have already written.
Thanks
RobHi Ismael,
I haven’t added another lightbox plugin.
It is adding the”lightbox-added” class but it doesn’t seem to be working. This is the generated html for one thumbnail:
<a style="position: relative; overflow: hidden;" class="lightbox-added" href="http://goldhillmuseum.org.uk/wp-content/uploads/2016/01/Shaftesbury-War-Memorial-1.jpg"><img src="http://goldhillmuseum.org.uk/wp-content/uploads/2016/01/Shaftesbury-War-Memorial-1-80x80.jpg" alt=""><span style="display: none;" class="image-overlay overlay-type-image"><span class="image-overlay-inside"></span></span></a>
The only difference I can see is that it is within a custom post type called Stories. The rest of the theme functionality seems to be okay. This is the loop-index.php:$content_output .= '<div class="story-images">'; $content_output .= '<span></br><strong>Images: </br></strong></span>'; if( $images ): $content_output .= '<ul>'; foreach( $images as $image ): $content_output .= '<li>'; $content_output .= '<a href="'. $image['url'].'">'; $content_output .= '<img src="'. $image['sizes']['thumbnail'].'" alt="'. $image['alt'].'" />'; $content_output .= '</a>'; $content_output .= '</li>'; endforeach; $content_output .= '</ul>'; endif; $content_output .= '</div>';
Thanks
RobThanks Andy login below.
Thanks Yigit.
I have a custom post type set up
e.g. http://goldhillmuseum.org.uk/story/sidney-william-alner/
Uploaded images display as thumbnails. This is the code from my loop-index.php.$content_output .= '<div class="story-images">'; $content_output .= '<span></br><strong>Images: </br></strong></span>'; if( $images ): $content_output .= '<ul>'; foreach( $images as $image ): $content_output .= '<li>'; $content_output .= '<a href="'. $image['url'].'">'; $content_output .= '<img src="'. $image['sizes']['thumbnail'].'" alt="'. $image['alt'].'" />'; $content_output .= '</a>'; $content_output .= '</li>'; endforeach; $content_output .= '</ul>'; endif; $content_output .= '</div>';
I was hoping that within the image link I could add a class or something that opens the images in lightbox and not full size as it does now.
Cheers
RobThanks Josue your a diamond!
Hi Yigit
I can’t see what you but logo is working fine now with the array. I just need to add 2 more filters1- to change the to the same logo on pages with /story/ in the address as well. (e.g. goldhillmuseum.org.uk/story/305/).
2 – as mentioned I want this one to work too:
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(wp_is_mobile() ) { $logo = "http://goldhillmuseum.org.uk/wp-content/uploads/2015/06/gold-hill-museum-header-340x156.png"; } return $logo; }
Thanks for all your help
Rob-
This reply was modified 9 years, 3 months ago by
fanlokbun.
Thanks Yigit,
Login below.
BTW I had some other code in the functions.php very similar to change the logo on mobile devices. I have commented it out to try and get this code to work but I would prefer if they both did.
Hi I have tried adding this to my functions.php in my child theme. (I’m guessing you meant that.)
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(306) ) { $logo = "http://goldhillmuseum.org.uk/wp-content/uploads/2016/01/great-war-header-90x380.png"; } return $logo; }
But no luck. Please help when you can.
Thanks
RobOne more thing:
Please add following code to Functions.php file in Appearance > Editor
I was just going to try it out but can’t find Appearance > Editor. I have Appearance > Edit CSS but no Functions.php there.
Thanks Yigit that’s great.
One dumb question I have a lot of pages with different ID’s. Say I had 3 page id’s of 301, 302, 303 would the functions.php be:add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { if(is_page(301, 302, 303) ) { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }
I realise that this job is out of the scope of your support. I didn’t expect you to do anything except point me to documents that will help me to do it like Ismael did earlier in this thread. I am willing to hire a freelancer again but I wanted to try myself first. You guys have always been very helpful that is why I have bought your theme 9 times ($640).
Thanks Elliott,
Sorry yes I mean separate pages in the same installation to have a different top menu and logo. What is the best way to do this?As per you advice I hired a codeable freelance developer and modified the includes > loop-index.php to contain the custom fields. It worked great on individual ‘stories’. e.g: http://goldhillmuseum.org.uk/story/305/
I now need to create the Stories home page but when I select Single Author Excerpt in the Blog Posts Content Element I get all the fields showing. How do I omit the custom fields and just show headings in the same way the blog works?Good point no it didn’t so nothing to do with you guys. We’ve found another plugin.
Thanks
Excellent thanks that sorted it.
Sorry one more question. Swifty Page Manager plugin doesn’t work after the move do you know if there are any incompatibility issues with Enfold? I have removed it and reinstalled it a couple of times.
Cheers
RobOne more quick question. The Enfold theme update is failing (3.4.3 to 3.4.7) can I just overwrite the whole folder with one downloaded from Themeforest?
Hi Rikard,
Problem solved! I uploaded another copy of iconlist.php and deleted the old and it is now working. It must have got corrupted somehow.
Many thanks for your help
RobSorry I changed the page so it showed all images because I didn’t want to go live with the bug.
Use this as an example:
http://www.edendesignandinteriors.co.uk/penthouse-se1/page/3/
This is page 3 of a slideshow with 19 images. When you click through to lightbox it only has 3 images in the slideshow. It should show all 19 images in that slideshow.
Thanks
RobHi Rikard,
I have now got access to the backend by disabling the Enfold theme.
I have created you a login below.I contacted 1&1 support and they have sent me this reply to forward on to you:
As checked, the file stated on the error message is really the one that’s causing the issue. It is incomplete. Please the details below:
array(
“name” => __(“Apply link to icon”, ‘avia_framework’ ),
“desc” => __(“Do you want to apply the link to the icon?”, ‘avia_framework’ ),
“id” => “linkelement”,
“requirUnfornately, we will not be able to help you fix the issue as you will need to refer this to you theme provider. You may now contact them and inform if it’s possible to get a copy of this file so you can replace the incomplete one. For you to be able to get the file, please see the path below:
staging/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/iconlist.php on line 97You can download the file and provide it to them for their reference. You may as well just ask a complete copy of the theme.
By the way:
– I have not re-uploaded anything as far as I can see it is an exact copy of what was on the old server with the same URLs.
– The old server was running PHP 5.3 and the new server is running 5.4.45
– WordPress now needs updating on the new server. I haven’t done it because I don’t want to change anything.
– The same with 9 plugins needing updates and three unused themes.Please can you take a look. Please advise if I need to do anything.
Thanks
Rob -
This reply was modified 9 years, 3 months ago by
-
AuthorPosts