ACF Image not appearing - advanced-custom-fields

Im setting up a custom field on the woocommerce product page to allow featured content to be added, it needs to upload an image and single line of text, unless there is a better way i have it currently set to load an image as 1 field and the second field is text Product fields img and its appearing on the front end like this img of frontend is there an extra step needed to make an image get displayed instead of the path?
Theres no code that i have typed, i have acf installed in wordpress, and a pagebuilder which you choose the field and put it into, its using visual composer. visual composer - page editing
either something is wrong with the plugin or i have set it up incorrectly in acf, although i dont think its overly complex in acf.

Related

Can I custom edit WordPress image pages?

When I upload images to WordPress I have the ability to click "View" when hovering over those images. This takes me to a permalinked page with the image title as the url and it uses the default post format.
These image pages don't appear on posts, or even pages. They seem to be intrinsically attached to the image. I can't seem to customise each page separately because they just grab the default post format that my theme provides and there's no way to actually access the pages.
I've searched around in my hosting panel but can't find anything. The images are there, the default post type is there, but nothing that is editable. The images have unique URL's so I assume they have to be stored somewhere. Is there a way to manually access each image page?
Create attachment.php in your template page, and change how you want
https://developer.wordpress.org/themes/template-files-section/attachment-template-files

Updating a Drupal Site and all I have is a HostGator login

As a favor for a friend, I'm trying to add a quick Valentine's Ad for an article that is supposed to be appended to the top of their existing site starting... tomorrow. They have an existing site made by somebody they are no longer in contact with back in 2010 built with Drupal.
I don't know Drupal. The only information I have is a HostGator login that I'm currently using to send a backup zip to my email.
HostGator's File menu doesn't even show search results for the text I'm searching for on the main page where I'd put this.
I have no idea what I'm doing, basically. I'm comfortable as a web developer in general and figured "yeah I can add a thing to the top of your pages, sure." I can write that HTML quickly, but everything else... do I need Drupal installed, etc, and will that run with the backup that HostGator is gonna send me?
Any advice? I realize I'm an idiot for signing up for a favor like this last minute.
Ultimately I just need to add some pictures and some text.
Easiest way to achieve this would be creating custom block. Not sure what version of Drupal you use, but let's assume it's D7 (similar for other versions):
Go to Structure -> Blocks -> Add block
Enter your static content into "Block body" field. Change that field format to "full html" so drupal won't filter out some of your tags.
If you don't want Drupal's block title to appear in Block title field enter < none > (without space signs in between! - SO can't show it without spaces).
Save your block
Now go to Structure -> Blocks...your block should be visible in block list. You can find and edit it from there.
Theme site uses has "Regions" (something like sidebars). If want your block to appear with main content find your block and select "Content" region. Or any other you want.
At top of that page should be a link "Demonstrate block regions" - click it to see which region is where..
After selecting region you can click "configure" link for your block to precise in what conditions block should appear on page. Click it.
Scroll down and in right sidebar at bottom of configure page you'll see "Pages", "Content types"... it for selecting on what pages, on what content types...your block should be visible. Default is everywhere, so if you need this - use it.
Save block. If you didn't save on Structure -> Block after selecting region select region again and Save.
You can embed your CSS there, but you can also go to (usually): /sites/all/themes/your_theme/styles/style.css or something like that.
If you can't find CSS turn the caching off for a moment: Configuration -> Development -> Performance and inspect location of loaded CSS file(s) (use browser inspection tool).
Good luck!

2sxc | Display File name only (and assign font icon)

I am trying to render the name of an uploaded file without displaying the full url path i.e. replace '/portal/documents/Doc1.docx' with 'Doc1'. I am using the razor template files that come with the install package and my razor file field is called 'q.Link'. From screenshot, I want to display file name only from 'File:673'.
Also, is there a way to auto display the selected font awesome icon from the 'FileType' option above? Is it possible to display a certain icon if a certain file is uploaded i.e. .docx uploaded then 'fa-file-word-o' displays to screen just left of file name 'Doc1' (currently I am getting user to select an icon from a dropdown list but looking to skip this hopefully unnecessary step)?
Yes you can, but you'll need to write a bit of code to do that automatically - basically checking the file name.
There's actually a template which already does some of this quite nicely - in the standard Bootstrap 3 Content-templates. Install them and check out the _Helpers.cshtml which is in charge of the icon-resolution.
https://github.com/2sic/2sxc-content-bootstrap3/blob/master/_Helpers.cshtml

Magento Configurable Products - Uses different layout to product/view.phtml?

I successfully edited the product/view.phtml file so that the add-to-cart button appears in a different location on the page. This works fine for simple products, but for configurable products this change is being ignored and the button is in its default place.
I cant figure out what I need to edit to apply the same change for configurable products.
It would be a lot easier if configurable products had their own template file.
Essentially all Im trying to do is create a box at the top right of the product content page that has the add-to-cart inside it, and for this to show in the same position for all product types.
Any help would be greatly appreciated!
Configurable product does have a custom template, look at template/catalog/product/type/configurable.phtml

Display custom tags on the display view of CKEditor 4

I'm trying to store a string of text in a database that includes custom html tags like:
<inline type="example" />
When it goes into the database it stores just fine but when I try to bring it out of the database into CKEditor to edit/modify it's not visible on the display side. Since it's a custom tag, I just want the person modifying to be able to see it and not CKEditor to try to render the html of it. I've looked some at Advanced Content Filtering but haven't been able to quite figure it out yet.
Any ideas?