Forum Replies Created
-
AuthorPosts
-
Hi Mike,
Thanks for the support. I managed to get it fixed. thanks to the link you’d sent.
Best regards,Bart
Please note that the Solid Code Editor is no longer supported due to security issues
Best regards,Bart
Hi Mike,
Sorry for the late response. An other project kept me busy.
Maybe I should better discribe what I am trying to achieve.
What I would like to achieve:
– remove the enfold logo in the header when the visitot views the website on pc, tablet and mobile phones and display the site identity without loosing the menu.Additional (but not important)
where site title: – font:mistral; font-size:25px; font-color:white
and tagline: – font:arial; font-size:15px; font-color:redSee one of my previous treads: https://kriesi.at/support/topic/remove-enfold-logo-from-header/
The reason you see the menu in header when looking at the website over a mobile phone is because I remmed (temporary diabled) the code below in the function.phpadd_action(‘avf_logo_final_output’, function() {
ob_start();
?>
<div class=”custom_logo”>
<H2><?php echo get_bloginfo( ‘name’, ‘display’ ); ?></H2>
<H4><?php echo get_bloginfo( ‘description’, ‘display’ ); ?></H4>
</div>
<?php
return ob_get_clean();
});As soon as I enable the code above, then I see the sidetitle and tagline again, but is the menu gone.
Do you have any advise how to solve this?- This reply was modified 6 years, 3 months ago by alteba. Reason: remove unnessecary code
update:
I found an example but that is Jquery and I don’t know if and how I can add jquery in the theme.
Can jQuery be combined with enfold?Het is the example I found:
$(‘.case’).each(function() {
var link = $(this).html();
$(this).contents().wrap(‘‘);
});
case is the name of the class
source: http://jsfiddle.net/r5uWX/1/I was thinking of two different methods to work with..
1) use a transparent gif (1×1 px) and make it clickable. The only thing is…..
I can’t place it anywhere without disturbing the current content/layout2) use a custom CSS which I added by adding code to the functions.php as described in: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
It should allow me to add e.g. ‘link_adviseur’ in the custom css field of the layout element,
then add code in the quick CSS that explains that all items with ‘link_adviseur’ can be clicked and redirected to an url.
But I don’t know how to make this code for the quick css.I think the second option is maybe the best. Can you help me achieving this?
I am looking forward to your replybest regards
Bart Altena
- This reply was modified 8 years, 10 months ago by alteba.
Hi Ismael.
Thank you for the response. working with grid row elements does allow me to place images as background.
The problem with images as background is the aspect ratio (which I completely forgot).
With different sized windows the section is deformed due to incapability of images to resize both width and height without adjusting the aspect ratio. So I can not continue using an Image with text without the image deforming.I created a new solution with an Avia Layout Element. But is there any way to link a layout element and all its content?
I now have an element containing a background image, cell padding 60px from the top and placed a special header, a textblock and an image at the bottom of the cell. I want the visitor to redirect to a different page as soon as he clicks somewhere in the cell.
Best regards,
Bart Altena
- This reply was modified 8 years, 10 months ago by alteba. Reason: minor grammar adjustments, so you guys better understand
try create a .htaccess file in the root of your website and place the following in the .htaccess
The file can be made with a notepad.php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200It allows you to upload 20Mb files instead of the default 2Mb wordpress allows you.
thumbs up!!! That is exactly as I requested.
Thank you for the supportBart
yup, That did the job.
Thanks,
enjoy the weekend.
Hi Josue,
Sorry for the late response but I only noticed this shortly.
When adding your code to the functions.php then the menu also disappears when viewing the website on a mobile phone.I changed the rights of the function.php, screenshot.png and the style.css
together with the installation of SC Theme Editor, you should be able to adjust the functions.php as per requested.I hope you can help me out once more.
Cheers,Bart
Hi Josue,
Please have a look at http://www.ltena.com
Thanks for your help in advance
Best regards,Bart
Hi Josue,
I don’t know if I should reopen this ticket or just place a reply.
I am puzzling all morning to get it right and it seems I fail.What I would like to achieve:
– remove the logo (regardless whether there is a logo uploaded in the theme options or not) on both pc and mobile phone
– display the site identity
where site title with: – font:mistral; font-size:25px; font-color:white
and tagline with – font:arial; font-size:15px; font-color:redBelow is a copy of the quick CSS in the theme options. As you can see I add first the code you gave me to remove the logo
This code does not only remove the logo, but also the site identity as site title and tagline.
The code between /* =================================================== */
is code where I have been experimenting with code to be able to display the site identitybelow the second /* =================================================== */
is where the rest of the code (including description and source) goesEverything below the second /* =================================================== */ I find irrelevant but I kept it in this post in case I am wrong and it does effects the behaviour of the logo and site identity afterall.
Can you please help me?
Best regards,Bart
/* begin quick css */
/*
verwijderd het logo en site identity
removes both site logo and site identidy
https://kriesi.at/support/topic/remove-enfold-logo-from-header/
*/
.logo {
visibility: hidden !important;
}/* =================================================== */
.logo a {
line-height: 40px;
top: 20px;
font-size: 20px;
}span.subtext {
color: grey;
font-size: 25px;
}span.tagline {
position: absolute;
color: red;
}
/* =====================================================*//*
maakt de achtergrond van de menubalk blauw
makes the background color of the menu bar turn blue
no link available from forum
*/
.header_color .header_bg {
background-size: cover;
}
#header_main_alternate, .bottom_nav_header.social_header .main_menu ul:first-child {
background: #3b5998;
}/*
verwijderd de rand om plaatjes heen
removes the border from pictures containing a hyperlink
https://kriesi.at/support/topic/how-to-remove-the-image-borders/
*/
a img, a:hover img{
border: none !important;
background: transparent !important
}.entry img{
border: none !important;
background: transparent !important
}/*
verwijderd de pijl over een plaatje met een link
removes the overlay on a picture with link
https://kriesi.at/support/topic/how-to-disable-hover-onmouseover-on-images/
*/
.image-overlay {
display: none !important;
}Thanks Josue,
That did the trick. I am very happy with you guys. Amazingly quick with your solutions.
You deserve a big thumbs up!!Enjoy your monday.
CheersBart
Now that is exactly why I love Enfold…You guys are the extra bonus you get when you purchase the theme. Thank you for the code!!
It does exactly what I requested.
CheersBart
June 7, 2015 at 10:35 am in reply to: what is best resolution and size for fullscreen slider #455615Cheers Josue,
Thanks for the good advise.
Much appreciated.Bart
Hi Edfritz and Josue,
Thank you indeed for your input. I don’t have the impresion the theme streches the picture. Instead it cropes the picture to fit it in the window.
I was very frustrated that I wasn’t able to see the whole picture. Instead the slider displayed a ‘zoomed’ version.
Unfortunately I was not able to take the picture again making sure there was enough surrounding around the object. So part of the object is cropped away. I gues that comes with the ability display the website in a resizable window. Maybe it is a nice RFE (request for enhancement) to enable the webdesigner a choice to either stretch the picture or crop the picture to fit the window.I managed to display the most important part of the picture by using ‘manage picture’ an slide the picture up.
But still not very happy with the result.Hi Yigit,
thanks again for the quick reply and good support.
Unfortunately the code does not what I want.I changed into
.image-overlay { display: none !important; }
#main a:hover {
-webkit-transform: scale(1.05,1.05);
transform: scale(1.05,1.05);
transition: all .3s ease-in-out;
-webkit-transition: all .3s ease-in-out;
}
#main a {
transition: all .3s ease-in-out;
-webkit-transition: all .3s ease-in-out;
}and now it work perfect.
I only hope I don’t break anything.
CheersBart
Hi Yigit,
You’re fast thanks for that.
Your solution changes indeed al pictures making them a bit bigger on onmouseover.
Unfortunately my sliders also grow bigger on a onmouseover event.
Is it possible to do the transition only when the image contains a link?
So not the sliders. and not the images without a link?Thanks for the support
Bart
Cheers Yigit.
The overla is disabled. Thanks.
Is it much work to enable the same overlay for all pictures (which we just disabled) as in the masonry gallery?
Best regards,Bart Altena
March 24, 2015 at 10:37 am in reply to: which file of enfold is resposible for creating the attachment page #416977djee… you’re quick. it works!! great. thanks a lot again!
Is this plain PHP? or is there more to learn to write this kind of code?
March 24, 2015 at 10:30 am in reply to: which file of enfold is resposible for creating the attachment page #416975Hi Josue,
One last question, if I may:
What if I have multiple fields to display.
eg.
I have created a field with field name: fieldtitel
and another with field name: fieldcatnrWhat would the code then look like?
Is it correct to state:<?php
function filter_attachment_content($content) {
if(is_singular(‘attachment’)){
$acf = get_field(‘fieldtitel,fieldcatnr’);
}
return $content.$acf;
}
add_filter(‘the_content’, ‘filter_attachment_content’);March 24, 2015 at 12:48 am in reply to: which file of enfold is resposible for creating the attachment page #416818You are one patient guy. Thank you very much as it is working
Cheers. Where can I send you the beer?don’t tell me it was just the ‘fieldtitel’
Big thumbs up for you!!March 23, 2015 at 10:19 pm in reply to: which file of enfold is resposible for creating the attachment page #416758Hi Josue,
Sorry to disappoint you but it didn’t do what it supposed to do.
I stil don’t see the extra fields in the attachment page.
The code in the WP quick bar is indeed gone.I have no glue what to do!
I tried your code in the fonctions.php of the enfold child theme.
I even added ?> behind your code so it closes the <?php
Or placed the code in the funcions.php of the parent enfold theme (non-child theme)
but nothing helped.Sorry to be such a burden but do you have any ideas left?
Cheers,Bart
March 23, 2015 at 3:57 pm in reply to: which file of enfold is resposible for creating the attachment page #416422This reply has been marked as private.March 22, 2015 at 11:41 pm in reply to: which file of enfold is resposible for creating the attachment page #416138cheers, I have to wait for tomorrow to tesdt it. thanks in advance
March 22, 2015 at 10:03 pm in reply to: which file of enfold is resposible for creating the attachment page #416073Hi Josue,
Thanks for the quick reply. But I don’t intent to build an attachment.php. I just need to know where to put the code for ACF (advanced custom fields). In my WP media library I have a picture with default ‘caption’ and ‘description’ and also an extra field ‘titel van het werk’ (see picture 1)
picture 1the picture is shown in http://www.ltena.com/?page_id=411 (picture 2)
picure 2Ones you click the picture you are redirected to the attachment page. Which shows the ‘caption’ and ‘description’, but not (yet) the ‘titel van het werk’ as shown in http://www.ltena.com/?attachment_id=1006 as shown on picture 3
picture 3I am trying to figure out where I can put the code. (I know which code to implement thanks to ACF)
Example: in theme twentyfourteen I can add the code in the image.php, but I don’t know the file in enfold which is responsible for the attachment-page. Any Ideas?- This reply was modified 9 years, 9 months ago by alteba.
-
AuthorPosts