Forum Replies Created

Viewing 30 posts - 31 through 60 (of 84 total)
  • Author
    Posts
  • in reply to: Add custom field data to custom single.php #576963

    Actually, writing a simple guide to something like that is kinda simple, not to be too patronising.
    It’s a question of whether you can be bothered.

    The marketing for this theme yaks on about how customisable it is. Good marketing, but in reality it does precious little these days that a whole swathe of other themes don’t do. Customisable? Yes, if you want exactly the same customisations as every other bog-standard website. Different? To do something more than produce a bog-standard wordpress site, or to use wp as a cms, it seems that custom posts are what you need to turn to. Your own replies to some questions are ‘you should use custom posts’ (I got that as a reply after asking how to create an ‘about us’ page that offered something usable in a real-world company), a quick search of your help forum shows more than a few posts asking about custom posts and the internet as it relates to wordpress seems to treat custom posts as one of the most important improvements in years…. but you think it’s too hard to provide meaningful help for people who might want different things.

    And yet you sell a website aimed at satisfying people who want “different things”. Cool.

    in reply to: Customise and Rename archive pages #576950

    Brilliant, more help from the Enfold help team that is actually no better than saying ‘we can’t be arsed to tell you’.
    Excellent work guys.

    I suppose next you’ll be telling people who ask how to change the colour of a menu that this is customisation, which support doesn’t deal with, and to refer instead to the wordpress codex.

    Waste of space.

    in reply to: Add gallery to single post template #575448

    Further to my previous…no idea why the code won’t paste properly. Tried backticks, clicking ‘code’ but it outputs like this.

    I looked at the source code from the shortcodes page and copied the html and then added the image fields. For now I have no idea why each gallery item has 3 image links (I can see one is the thumbnail) so for now I’m probably doing it wrongly. However, this gives me a gallery with preview thumbnails under. This is what I used……

    <div class='avia-gallery avia-gallery-99 avia_lazyload avia_animate_when_visible avia-builder-el-12 el_after_av_textblock avia-builder-el-last'>

    <a>' data-onclick='1' title='Click to see full-size' ><span class='avia-gallery-big-inner'> <img width='845' height='321' />' title='image two' alt='alt text' /></span></a>

    <div class='avia-gallery-thumb noshow'>

    <a>' data-rel='gallery-99' data-prev-img='<?php the_field('baker_img1a'); ?>' class='first_thumb lightbox ' data-onclick='1' title='<?php the_field( 'baker_name' ); ?>' itemprop="contentURL" ><img />' width='80' height='80' title='<?php the_field( 'baker_name' ); ?>' alt='<?php the_field( 'baker_name' ); ?>, <?php the_field( 'postal_town' ); ?>' /></a>

    <a>' data-rel='gallery-99' data-prev-img='<?php the_field('baker_img2a'); ?>' class='lightbox ' data-onclick='2' title='<?php the_field( 'baker_name' ); ?>' itemprop="contentURL" ><img />' width='80' height='80' title='<?php the_field( 'baker_name' ); ?>' alt='<?php the_field( 'baker_name' ); ?>, <?php the_field( 'postal_town' ); ?>' /></a>

    <a>' data-rel='gallery-99' data-prev-img='<?php the_field('baker_img3a'); ?>' class='lightbox ' data-onclick='3' title='<?php the_field( 'baker_name' ); ?>' itemprop="contentURL" ><img />' width='80' height='80' title='<?php the_field( 'baker_name' ); ?>' alt='<?php the_field( 'baker_name' ); ?>, <?php the_field( 'postal_town' ); ?>' /></a>

    <a>' data-rel='gallery-99' data-prev-img='<?php the_field('baker_img4a'); ?>' class='lightbox ' data-onclick='4' title='<?php the_field( 'baker_name' ); ?>' itemprop="contentURL" ><img />' width='80' height='80' title='<?php the_field( 'baker_name' ); ?>' alt='<?php the_field( 'baker_name' ); ?>, <?php the_field( 'postal_town' ); ?>' /></a></div></div></div>

    This gives me a gallery in single.php with the images called from custom fields. It seems to work, in that respect.

    However, if I put my mouse over the thumbnails and the preview image changes, the formatting is crap because if the gallery includes a mix of images of different sizes, the preview screen for all images takes the size of the tallest one, leaving acres of whitespace under any following landscape format images. My original intention was to allow users to upload up to 5 images……… but that means some will upload 5, some just 1 and some 0. That would make the thumbnails look silly, so the only solution I can see is to hide them with css (I can see they have to be on the page in the first place for the gallery to work). Doing that, the lightbox opens if the ‘preview’ image is clicked and the correct images can be cycled through.

    But I still come back to the thing I knew would be the problem;
    I only want the gallery (and it’s entire containing div) to be displayed if it the specific post actually contains images. Something like ‘if imagefield1 or imagefield2 contain a value/image, then show…otherwise hide’.

    For someone who knows even remedial php I’m pretty sure that’s child’s play to resolve. Unfortunately, I know nothing, which was why I was asking for a little help here. Can you tell me what I need to do?

    • This reply was modified 8 years, 9 months ago by brian7454.
    in reply to: Add gallery to single post template #575440

    Well, that brings up 3 thumbnails that can be clicked. Unfortunately, I can’t see from the code how to add the preview, nor how I would specify that the images shown should only be those from the current custom post.

    As I said earlier, I needed something I could add custom fields to (these would contain the images). Having to try and work it out for myself, I tried the cheat’s approach and pasted the following into my single-baker.php. It does part of what I want.

    I’m just deleting the code while I edit it.. will post it again in a second

    • This reply was modified 8 years, 9 months ago by brian7454.
    in reply to: Add gallery to single post template #575227

    Well, you might not be willing to help with custom coding but can you at least tell me how to manually add a gallery with preview to single.php? That gives me a starting point..

    in reply to: Add custom field data to custom single.php #575122

    Given the number of third-party plugins this theme uses to do things like adding photos, and by the number of other people I found asking questions relating to custom posts, I’m amazed that you would question the point of adding a simple guide to adding actual functionality to a website on the grounds that it might need a free third party plugin.

    I know it would require custom coding but what doesn’t? That was why I asked for help in the first place. The point it, I thought maybe people might like to see basic example coding which they could use as a starting point. How many of your users do you reckon try to use custom posts these days?

    Frankly, I’d swap the various image plugins you build into the theme for a little help on how to incorporate custom posts into this theme. There are thousands of “help pages” online wasting reams of text explaining why you should use custom posts but offering little more than “create a “single-cpt.php” file in child theme and start from there”, which doesn’t really help a whole lot.

    in reply to: Add custom field data to custom single.php #575064

    Okay, never mind, I’ve found a way to do what I want, even if it probably isn’t the right way.

    While it might be a ‘customisation’, given that custom post types seem to be used more or less everywhere and by everybody, and given that Enfold might not be an easy thing for people to edit…… perhaps it would be nice if someone could knock up a simple ‘how to’ for using the theme with custom posts with a little sample code for people to follow? Most of the stuff Google chucks up if you do a search for that type of thing is either unhelpful wordpress codex pages which presume a certain level of knowledge of pure clickbait garbage copied between a thousand sites..

    in reply to: Customise and Rename archive pages #575060

    Anybody?
    I’ve managed to get single.php customised now, but I can’t find anything with useful help online regarding archive pages (most just say things like ‘find and edit this page…’ without actually saying how…).

    in reply to: Add custom field data to custom single.php #574760

    Josue,

    No, I was just going to create a template (or hoped to, editing the originals) and then simply add relevant custom css. I did it on two other websites, but they used a plugin (for job adverts) which already had dedicated single and archive templates that were a doddle to adapt. Here, with this theme and without something to guide me, I have no idea where to start.

    Ideally, I don’t really want to do things using internal builders because if I need to replicate the coding to test in another theme, I won’t be able to – whereas if I manually edit a template I can almost certainly transpose that to an alternate theme without too much grief. If stuff is created with the layout builder (I assume you mean the page builder in the theme) I wouldn’t know how..

    Brian

    in reply to: Customise and Rename archive pages #574062

    Um…all I can see above is an empty grey box?
    However, the link you posted showed up in the notification email. However it doesn’t help at all.
    I’ve found various ‘help’ articles online, none of which have been helpful because what they say to do and change doesn’t relate to what I see in Enfold files… that’s why I was asking for pointers here!

    • This reply was modified 8 years, 10 months ago by brian7454.
    in reply to: Place 'leave a comment' field labels above fields #493355

    I more or less sorted the formatting (it’s not perfect but it’ll do) and somehow the labels finally showed up in the right place (don’t know why). However, after hiding the website field and making the remaining two 49% wide I can’t have a 2% margin between them. For some reason a 100% width total isn’t possible. So I reduced the width of the main comments box by 1%. Odd, with no margins visible…

    However, to repeat my last question, how can I add placeholder text in the fields?

    in reply to: Unable to format text #487890

    Hello,
    I found out what the problem was. I had used <?php echo esc_html …. which (I didn’t know) stripped the html I was trying to show. In the end <?php echo wp_kses_post… worked.

    in reply to: Language meta tags #487887

    Thank you

    in reply to: Language meta tags #481223

    Thanks for that. I haven’t been able to find out how to use it though and I’ve no idea how to edit the code. In any event, does that set a site-wide language or allow page by page changes? The link you showed (thanks) doesn’t give any understandable guidance.

    I found this article (https://thomas.vanhoutte.be/miniblog/language-per-blogpost-wp/) which looks like it might contain an effective solution, quite simple too. However, as the majority of my pages and posts are in Italian, (or at least the most important for seo) I guess that Italian should be my default language (in terms of what gets added to page/post header attributes, not in admin) and I can then use the solution referred to above for the minority English pages.

    How do I do that? I looked at header.php and can see where it sets the language but it just says <?php language_attributes(); ?>
    That suggests it takes the language data from somewhere else (I’m no php genius). Or am I missing the point?

    Given that there are lots of websites I come across that display more than one language on a page, or have different sections in different languages (not translated) I’m surprised I can’t find much information on how to do it. I know it’s child’s play in html but if there’s a guide to doing it in wordpress it must be on page 2,527,201 of Google’s wordpress search results and I’d need to be born again several times to find something helpful!

    in reply to: Unable to format text #480827

    Hello,
    Thanks for the offer Ismael, but I tried switching themes and because of templates, etc, it didn’t help.

    However, I found the problem. I’ve not fixed it properly though. In the display template for the pages you looked at, I looked at the code and deleted and replaced it bit by bit. I realised that the two defective fields had esc_html in the code. I deleted that and suddenly everything works again. However, nothing I have tried to replace that code with seems to do the job properly and I know that code is required to protect from hackers. Someone suggested wp_kses_post but that takes me back to unformatted text again. All I really want is line breaks and maybe bold and italics….so not a lot. Also, everything I’ve read about wp_kses suggests it slows things down significantly.

    How do you make a text area safe but let it display simple markup?

    in reply to: Variable footer blocks on different pages #480262

    Maybe that’s a suggestion for future upgrades?

    in reply to: Unable to format text #480062

    Yes, with 2015, though changing the theme destroys the entire site….
    Somebody logged on to the site from the Phillipines using the password and username I gave you. I hope that was you folks.. If it was, the activity log says they didn’t do anything or log out yet. I gave the example pages and explained how you could see how the editor doesn’t work. Did you see what I mean?

    in reply to: Unable to format text #478634

    Okay, details are below.

    The plugins that relate to that page are ‘wp job manager’ and ‘WP Job Manager Field Editor’. Unfortunately, both are required for the post to exist and use data from both, so disabling them doesn’t help!

    Using the dummy admin account, I created a post to illustrate what I mean.

    I have included below the url of the published post and also the url of the front-end submission / edit screen for the post. You can see the before and after. If you need to. There are two text areas, and the rest are simple text fields.

    If you view the published version you will see the text area block is totally unformatted. If I change the field type to ‘wp editor’ to allow formatting, it just prints the html tags on screen. In any event, all I want is to be able to create paragraphs or line breaks, nothing fancy.

    Thanks guys.

    in reply to: Edit portfolio template #463498

    Josue,
    No, that’s not what I meant – if you are talking about the portfolio single items. I mean the portfolio display, like a list of items. Anyway, I haven’t been able to do what I want, so I’ve kinda botched something else that is similar but not sortable.

    What I wanted was a portfolio item that was an image (about 30% wide, a block of text beside it and a set of divs with text below. So the portfolio items could be made to look like ‘Our team’ items that linked to single pages.

    in reply to: Add a custom css sheet to specific template #463497

    I actually found the solution in the end before I came back to read this! Thank you anyway.

    in reply to: Make 'team' items sortable – filterable #456578

    Okay, I’ll look at that.

    Just a thought though; I have never seen an ‘our team’ section in any theme that is actually useful for more than a very small business. Maybe someone should think of adding that as a future item? I mean, imagine you have an organisation based in more than one country or with multiple departments.. finding what you want with standard team pages isn’t so easy or pretty. Also, with each country, you might want different languages or country-specific content, or with each department, specific material for that. It would be invaluable and would also be easily editable for other applications. I have a dozen sites that are on html because none of the themes I’ve found have that sort of functionality – it may be the case that if I learn how to deal with and display custom posts I could work it out, but themeforest isn’t for coding experts, is it?!

    Anyhow thanks for the suggestions.

    in reply to: Edit portfolio template #456576

    The most important thing for me to modify is not the individual portfolio items. It is the portfolio listing output, like on the 3-column portfolio display. That allows me to output only a title and text extract. The advanced builder doesn’t work on that, does it? Maybe it accepts bare html though, will have to look again.

    I’m using two different versions because I’m testing on two domains while I work out how to do certain things – and to see what effects certain plugins have. I had the same problem with 3.2 on my second install, but when I deleted the elements are added again the issue went away. I have now got both running with the same version – I didn’t notice it had changed. So yes, it’s something to do with the demo. Thanks

    in reply to: Edit portfolio template #455433

    That seems a dodgy idea, editing parent files… tears are inevitable when you do that sort of thing.

    In truth, I’m very disappointed. I don’t want portfolio items that have immense images; I want to be able to specify how they are output – I need items that incorporate small images and a little content, content that can be displayed as I want. There is no information on how to do this anywhere, and it seems that the portfolio pages are very difficult to customise, which for someone with my knowledge means they cannot be customised. So, bog standard or nothing.

    I’ve been waiting a couple of days for a fix to the bug on portfolio pages so that I can have a closer look at them, but there’s no sense wasting time until the theme has been updated because I won’t know if what I’m looking at is being output correctly.

    I was also hoping to have something other than have a static listing of team members but it seems I need to create them as custom posts and display them as portfolio items….which don’t seem to be easy to modify. I thought this theme would allow me the flexibility to do what I need, but it doesn’t seem to be easily modified at all.

    in reply to: Make 'team' items sortable – filterable #455428

    Hm. Okay well that sounds like creating something else rather than what I wanted to do. If you have a large number of employees you might want to be able to filter and display by department, country of whatever, not just have a long list. I actually wanted to use something like the ‘our team’ page and format for this, just with items being filterable. I would have thought that was a logical function on a staff listing page unless you only employ half a dozen people.

    Can you let me know when it has been updated please?

    Well, the install is still more or less standard and you can see one example here: http://insegnanti-inglese.it/portfolio/portfolio-2-column/

    As for what to see; the footer.

    If you prefer images, see below:

    https://www.dropbox.com/s/rrcqv3mmedk6hsw/enfold-install-june3.jpg?dl=0
    https://www.dropbox.com/s/unu0kqkghmgalh1/insegnanti-inglese.it_2015-06-04_16-27-36.jpg?dl=0

    in reply to: Gradient background wanted in header #453958

    @Ismael,
    I wasn’t bumping, I was saying I’d found a solution. I thought that was clear.


    @Andy
    ,
    I then said that I get a white screen on THIS website after I post anything. If I post a comment or new thread. I got it today after posting a new thread and I’ll get it again after posting this. If I refresh the screen I then get a message saying I’m trying to make a duplicate posting, or similar. It’s a fault on your site, not mine!

    But as I said before, you can close this topic insofar as I solved the issue.
    Thank you

    in reply to: Gradient background wanted in header #451985

    Ismael, the problem with the white screen after posting still happens today, a couple of weeks later.
    If you refresh the screen after posting it generates an error message saying something like ‘oops you’ve already posted this’.

    Don’t worry, I found a solution.

Viewing 30 posts - 31 through 60 (of 84 total)