So I am currently working on a new website and there is a tiny problem with renaming one of the pages for the website, so I have a page called https://website.com/studio-hire-2/ and I want to rename it to .../studio-hire/ but unfortunately I can't do that.
So I figured out that this must be because this page already exists, and yes it does! So I went on to look for it among other pages in the dashboard and could not find it. I've looked everywhere among other pages, drafts, bin... its just not there. I have clicked and checked every single one of them. Maybe I am missing something, any help would be very appreciated!
Related
So, there's a code that I've recycled multiple times on sites as it's well liked by my company. I am trying to update and recreate my portfolio due to my old hosting company wiping my entire file system. My fault for not having a back up, but lesson learned. Makattak.com Using this code here, I am unable to get anything to display.
A site I've used it on is here: Bowhunting.com
Here is a photo of my repeater field in ACF. I followed the same structure but still cannot get anything to display.
Can anyone offer some suggestions as far as what I am doing wrong? I've tried cutting things out, I've tried rebuilding from scratch, I just can't seem to get the loop to happen.
I am using the latest version of WordPress, and the latest purchased copy of ACF: Advanced.
I know this my sounds stupid but, did you assign the template to a page and select the page on the wordpress Reading settings?
Thanks to both Dre and Raul Cruz, I was able to find the issue.
I didn't set the Reading Settings to Home Page, static.
I revamped my code to change the_sub_field('field'); to
get_sub_field('field')
a change I made while debugging but didn't revert back
There was an issue with my syntax, and when writing the code back in, line by line, testing after each line, I was able to get what I needed back in working order
Thank you both for the help.
I am helping out with a Magento store initially configured by another developer who is now gone from the company, and I have no experience using Magento at all. Instead of using the built-in newsletter tools, he created an HTML form which points to a completely different server (which he owns) and now we no longer get notifications when a customer signs up for it.
Somehow, he embedded the HTML into the front page of the Store's website. I spent hours looking for the HTML and did find it, in a page called "Subscribe.phtml". I got happy, changed the code inside that page to what I want it to be, uploaded it back to the server and... nothing. No change at all to the site. I flushed the cache but that did not help.
The page does not appear to have much code in it. In CMS->Pages->Content, it shows only this:
{{block type="featuredproductslider/featuredproductslider" name="featuredproductslider"
template="magentothem/featuredproductslider/featuredproductslider.phtml"}}{{block
type="newproduct/newproduct" name="newproduct"
template="magentothem/newproduct/newproduct.phtml"}}
Under Design, it shows only that the layout is "3 columns". There is literally nothing else in this section.
Can you help me understand how I can change the HTML in this area to make this work? If this is helpful, here's a picture of the area that I am trying to configure:
Thank you.
On page 44 of the manual, there's a section called "How to find out which layout file to modify". I used Template Hints and figured out where the code lived. This is what Jim was referring to. It would have been nice for someone to instruct me on how to do this.
I set it up and found that the previous developer had modified the template directly rather than use blocks or other parts built-in to the system to modify the front page.
You can enable template hints in the Magento configuration:
Go to System->Configuration
Change "Current Configuration Scope" to "Main Website"
Go to Advanced->Developer
Under the Debug tab, choose "Yes" for the "Template Path Hints"
Save configuration.
Now go to your homepage, refresh the page and you will see paths to all templates used on the homepage. You will then get a good idea of where each block comes from.
It won't solve your problem, but it might help you find the right template to edit.
I am looking to track down the file (and it's location) that generates the 2 buttons on Magento. When I hit "add to basket button" on any product on the homepage a pop-up with 2 buttons appears. I am unable to translate the buttons (not images). I did tried to locate it for a couple of days, but no success. Inspect element/view source/including developer extensions doesnt help me at all. Website: haratoys.ro
thx in advance
Here are a few things you can do:
grep - always useful. Look through templates AND app/code/local, AND app/code/community. Or use an IDE that can search through all the files.
Check the admin panel. Some extensions may use widgets or insert blocks in textareas. Normally, when adding buttons programmatically, there will be an option to edit them
When all fails, search the database directly. First, look in core_config_data, then try searching through the custom tables, and if all else fails, look through the whole database (phpmyadmin has such functionality).
If none of these help, someone screwed up really bad. Check for symlinks or encoded information, maybe even remotely loaded content, javascript generated content (although this should be found with grep).
Also, try searching for identifiers that are not general. Looking for the "Add to cart" text may not find what you need, but searching for the button id will get you some useful information. Also check case sensitivity.
It's probably custom to your theme, but it may be located in
app/design/frontend/theme/default/template/checkout/onepage/link.phtml
This is where I was able to change the content of the links, so it's possible that they are in the same location.
What Vlad said, however, is the best way to find what you're looking for.
I have a quick question on the best way to show a particular message to users that navigated to a page via a particular link on the site.
The situation is I have a sidebar on the website and two of the links will point to the same page - one of them used to point to a page containing a form but now I want to change it to point to the same page as another link and display a message for users that clicked this particular link.
I tried changing the htaccess file and using HTTP_REFERER but because theses links are in a sidebar on every page that doesn't work - never thought that one through at the time!
Now I have tried simply changing the link and adding a parameter on the end, e.g. /page.html?question=yes and then doing the following on the page:
if ($_GET['question'] == 'yes')
{
echo '..................';
}
But that doesn't seem to be working either so I was wondering if anyone had came accross a similar problem and how they went about solving it?
Using $_GET and Querystring is the best match for you, but I'm not sure your file extension is being processed properly. Try to change .html to .php
I'm again lost with CakePHP.
Before site was using "static" one page invite for users from twitter, and now, I want all of those on one page.
I menage to create it for Facebook, but I can't for twitter.
I find controller file, it's the same for both, routes.php is redirecting on same way for both, I find file that is rendering in this command, but when I try to use:
$this->renderElement('fetch_twitter_contact');
It get's it all wrong.
And if it's called from original file it's all working okay.
I checked original file and it doesn't have anything different than this new have ( no special commands in front ), but still something is different.
Can someone tell me what else is deciding which codes will be run if file name is different?
How can I turn same functions to work in new file like it was working in old one?
New file have name index.ctp, and old one had social_contacts.ctp
New link is friend_invites/ and old one had friend_invites/social_contacts ( or friend_invites/social_contacts?contect=twitter )
It's 6AM here, and I'm still busting me head off with this.
Please help.
Your question is very difficult to understand. I suggest you get some sleep and clean up the question a bit so we can help :)
From what I understand, you're trying to call fetch_twitter_contact from two different views, but it only work from 1 view? Is this the problem?
Please go through this list and update your question
Have you set debug to 2 in core.php? If not, please do it
Are you getting any error messages? Post them in this question
Where is the element stored? In the elements folder or in a different folder inside the view folder?
It get's it all wrong. What does this mean? What goes wrong? What do you expect to happen?
Can you post the FULL url and associated views you are trying to use?